{"openapi":"3.1.0","info":{"title":"WildLens AI API","description":"Trail Camera Intelligence Platform","version":"0.1.0"},"paths":{"/health":{"get":{"tags":["health"],"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/version":{"get":{"tags":["health"],"summary":"Version","description":"The running build's version — the same per-deploy identifier emitted on\nevery response as ``X-App-Version`` (the 12-char git SHA injected as\n``APP_VERSION`` at deploy, or ``\"dev\"`` locally). Health-adjacent + unauth so\nthe FE (or ops) can read the backend version explicitly without a full\nrequest round-trip's header inspection.","operationId":"version_version_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/ready":{"get":{"tags":["health"],"summary":"Ready","description":"Readiness probe — the ALB target-group health check (WLAI-30).\n\nDeliberately deeper than ``SELECT 1``: it loads one real ORM row so the\nprobe references *every* mapped column on the model. A task booted against\nan unmigrated schema therefore raises ``UndefinedColumn`` here and fails\nthe health check, instead of reporting healthy and serving 500s.\n\n``Photo`` is the canary because it is the model the migration chain keeps\ntouching (taxprov0001, takenutc0001, x9d2f4b6c8e1, w6s9u1o3p9r0,\nu7w9y1a3c5e7). ``LIMIT 1`` keeps it bounded; the middleware gives it a 5s\nbudget so a hung DB fails fast rather than stalling the rollout.\n\nResponse shape is unchanged from the ``SELECT 1`` era — something external\nmay parse it.","operationId":"ready_ready_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/auth/me":{"get":{"tags":["auth"],"summary":"Get Me","operationId":"get_me_api_v1_auth_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ProfileResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["auth"],"summary":"Update Me","operationId":"update_me_api_v1_auth_me_patch","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ProfileResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/me/password-changed":{"post":{"tags":["auth"],"summary":"Complete Password Change","description":"Clear the temp-password gate after the caller has set a real password.\n\nThe FE changes the password directly against Supabase\n(``supabase.auth.updateUser({ password })``) — the backend is not in that\ncall — then calls THIS endpoint to clear the gate.\n\nThe gate is read from ``Profile.must_change_password`` (the DB column), so\nclearing that column releases the gate on the very next /me read with NO\ntoken-refresh dependency — this is the fix for the 2026-07-17 stale-token\nloop (metadata cleared, but a stale JWT kept /me returning true forever). No\n``refreshSession()`` dance required.\n\nIdempotent.","operationId":"complete_password_change_api_v1_auth_me_password_changed_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/me/avatar":{"post":{"tags":["auth"],"summary":"Upload Avatar","operationId":"upload_avatar_api_v1_auth_me_avatar_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_avatar_api_v1_auth_me_avatar_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ProfileResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/me/subscription-status":{"get":{"tags":["auth"],"summary":"Get Subscription Status","operationId":"get_subscription_status_api_v1_auth_me_subscription_status_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/api-keys":{"post":{"tags":["auth"],"summary":"Create Api Key","operationId":"create_api_key_api_v1_auth_api_keys_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ApiKeyResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["auth"],"summary":"Revoke Api Key","operationId":"revoke_api_key_api_v1_auth_api_keys_delete","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/claim-invite":{"post":{"tags":["auth"],"summary":"Claim Invite","description":"Reconcile a freshly-signed-up Supabase user with a Profile.\n\nFlow:\n  1. The invite landing page calls ``supabase.auth.signUp(...)``\n     with the invite's email + a user-supplied password.\n  2. On success it POSTs the bearer ``token`` plus the new\n     ``supabase_user_id`` here.\n  3. The service validates the token, finds the matching Profile\n     by email (PR-J2 admin-created profiles use random UUIDs),\n     stamps ``profile.supabase_user_id``, activates org\n     membership if applicable, and marks the invite claimed.\n\nAuth model: this endpoint is intentionally unauthenticated.\nThe bearer secret IS the invite token; we don't require a JWT\nbecause the very next thing the client does is sign in with\nthe new credentials. The token is single-use (``claimed_at``\nbookkeeping prevents replay).","operationId":"claim_invite_api_v1_auth_claim_invite_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimInviteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ProfileResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me":{"get":{"tags":["me"],"summary":"Get Me","description":"Return the slim post-login profile payload.","operationId":"get_me_api_v1_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_MeResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/profiles/me":{"patch":{"tags":["profiles"],"summary":"Patch Profile Me","description":"Alias of ``PATCH /auth/me`` (T1). Same shape, same handler.","operationId":"patch_profile_me_api_v1_profiles_me_patch","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ProfileResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/profiles/me/notifications":{"get":{"tags":["profiles"],"summary":"Get Profile Notifications","description":"Alias of ``GET /notifications/preferences`` (T2).","operationId":"get_profile_notifications_api_v1_profiles_me_notifications_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_NotificationPrefsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["profiles"],"summary":"Update Profile Notifications","description":"Alias of ``PUT /notifications/preferences`` (T3).\n\nAccepts both PUT and PATCH — the underlying body is already a\npartial update (``exclude_unset``), so PATCH semantics hold for\neither verb.","operationId":"update_profile_notifications_api_v1_profiles_me_notifications_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationPrefsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_NotificationPrefsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["profiles"],"summary":"Update Profile Notifications","description":"Alias of ``PUT /notifications/preferences`` (T3).\n\nAccepts both PUT and PATCH — the underlying body is already a\npartial update (``exclude_unset``), so PATCH semantics hold for\neither verb.","operationId":"update_profile_notifications_api_v1_profiles_me_notifications_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationPrefsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_NotificationPrefsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/profiles/me/data-export":{"post":{"tags":["profiles"],"summary":"Request Data Export","description":"Self-service data export (T5 / ruling Q2).\n\nDelegates to ``POST /privacy/dsar`` with ``request_type='portability'``\n(the full machine-readable export surface). The caller is\nauthenticated, so the request lands as ``received`` immediately and\nthe 45-day SLA starts without an email-verification round-trip.","operationId":"request_data_export_api_v1_profiles_me_data_export_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DataRightsRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_DsarSubmitResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/profiles/me/delete":{"post":{"tags":["profiles"],"summary":"Request Account Deletion","description":"Self-service deletion request (T9, CCPA).\n\nDelegates to ``POST /privacy/dsar`` with ``request_type='delete'``.","operationId":"request_account_deletion_api_v1_profiles_me_delete_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DataRightsRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_DsarSubmitResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/profiles/me/preferences":{"patch":{"tags":["profiles"],"summary":"Update My Preferences","description":"Shallow-merge the whitelisted preference keys into\n``Profile.preferences`` (T10). Only keys present in the request body\nare touched; existing keys (incl. ones outside this whitelist) are\npreserved. Reassigns the column so the JSONB change is tracked.","operationId":"update_my_preferences_api_v1_profiles_me_preferences_patch","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferencesUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PreferencesResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/profiles/me/ui-state":{"get":{"tags":["profiles"],"summary":"Get My Ui State","description":"Read the whitelisted UI-state keys out of ``Profile.preferences``.\n\nAbsent keys come back as ``null`` — the FE treats that as \"never\ndismissed / never completed\".","operationId":"get_my_ui_state_api_v1_profiles_me_ui_state_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_UiStateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["profiles"],"summary":"Update My Ui State","description":"Shallow-merge the whitelisted UI-state keys into\n``Profile.preferences``. Only keys present in the request body are\ntouched; existing keys (incl. ones outside this whitelist) are\npreserved. Reassigns the column so the JSONB change is tracked.","operationId":"update_my_ui_state_api_v1_profiles_me_ui_state_patch","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UiStateUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_UiStateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/organization/me":{"get":{"tags":["organization"],"summary":"Get My Organization","description":"Return the caller's organization (T6) for the ACTIVE context.\n\nDelta D: resolved from ``OrganizationMember``/active context, not the\ndormant ``profiles.organization_id``. ``get_active_context`` has\nalready validated the caller's membership for an ``org:`` context.","operationId":"get_my_organization_api_v1_organization_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_OrganizationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["organization"],"summary":"Update My Organization","description":"T7 — owner edits the active org's profile (name + timezone only).\n\nlogo_url / seats / the legacy ``type`` field are excluded — the\nadmin surface owns those.","operationId":"update_my_organization_api_v1_organization_me_patch","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgProfileUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_OrganizationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/organization/members":{"get":{"tags":["organization"],"summary":"List My Org Members","description":"Return the active org's member list (T8).\n\nDelta D: scoped to the ACTIVE context's org via ``OrganizationMember``\n(authority), not the dormant singular column — so a multi-org Guide\nsees the right roster per context.","operationId":"list_my_org_members_api_v1_organization_members_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__common__ApiResponse_list_MemberResponse____1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/organization/entitlements":{"get":{"tags":["organization"],"summary":"Get My Org Entitlements","description":"The active org's entitlements, read-only (WLAI-306).\n\nBacks the outfitter portal's \"Your plan\" page: every catalog capability with\na plain included / not-included answer, plus one server-authored upsell line\nfor the not-included rows. R3's allowlist model, rendered — the outfitter\nsees what a System Admin granted and has no way to change it.\n\nNO ORG IDENTIFIER IS ACCEPTED, AND THAT IS THE AUTHORIZATION.\nThe org is resolved from the active context (``require_active_org_id``),\nwhich ``get_active_context`` has already proven the caller belongs to. There\nis no ``{org_id}`` path parameter and no org filter in the query string, so\n\"an outfitter manager cannot read another org's plan\" is a property of the\nroute's SHAPE rather than of a check that a later edit could drop. It also\nmeans no other organization's id can appear anywhere in this response or in\nany error it raises, satisfying the standing rule that identifiers are\nmachine keys the customer never sees for an org that is not theirs.\n\nMANAGER-OR-ABOVE, matching the ticket's done bar (\"an outfitter manager\nsees...\"). Backend ``owner`` and ``manager`` both pass — the frontend's\n\"Outfitter Manager\" maps to the backend ``owner`` role, so gating on\n``owner`` alone would lock out the Lead Guide tier that the same page is\nwritten for. Guides and client hunters get 403.\n\nREAD-ONLY BY CONSTRUCTION: GET only, and the payload is projected from the\nresolver rather than from the grant rows, so there is nothing here to PATCH\nback. Toggling stays on the System Admin surface (WLAI-304).","operationId":"get_my_org_entitlements_api_v1_organization_entitlements_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_OrgPlanResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/organization/branding":{"get":{"tags":["organization"],"summary":"Get My Org Branding","description":"The active org's current branding.\n\nNOT entitlement-gated, mirroring the admin read: an org whose contract lapsed\nstill needs to see that a logo is on file, and hiding it would make a\ncontract question look like lost data. Only the writes below require the\ncapability.","operationId":"get_my_org_branding_api_v1_organization_branding_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_BrandingResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/organization/brand-color":{"put":{"tags":["organization"],"summary":"Set My Org Brand Color","description":"Set or clear the active org's brand color.\n\nPUT rather than PATCH because the body carries the field's whole value and an\nabsent one means \"clear\" — the same convention as the admin route.","operationId":"set_my_org_brand_color_api_v1_organization_brand_color_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandColorRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_BrandingResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/organization/palette":{"put":{"tags":["organization"],"summary":"Set My Org Palette","description":"Store the logo's extracted swatch set, optionally selecting one (WLAI-309).\n\nExtraction itself is the client's job — the browser already has the decoded\nimage and the result feeds a picker the user is looking at. This stores the\noutcome. The server keeps its own extraction only as a floor for non-browser\nuploads (see ``org_branding_service.upload_logo``), and a call here overwrites\nthat floor with the better set, which is the intended flow.\n\nThe palette and the selected colour travel together so that \"here is the\npalette, and the user clicked this swatch\" is one request. Sending only\n``brand_color_source`` toggles auto/custom without changing the colour AND\nwithout disturbing the stored swatches (WLAI-356).\n\nONLY A REAL LIST WRITES THE PALETTE. A branding write REMOVES any key it\nsends as ``None``, so anything that is not a list has to be held back from\nthe service entirely. Two shapes mean \"leave the swatches alone\" and both map\nto :data:`~app.services.org_branding_service.UNSET`: the key omitted, and the\nkey present as an explicit ``null``.\n\nWLAI-356 first gated this on ``model_fields_set`` — \"was the key in the body\nat all\" — which fixed the omitted case and left the null one, because a null\nIS present and fell straight through to the delete. A client holding an empty\npalette in form state sends exactly that null, so the two have to land the\nsame way. Asking the VALUE instead of the body answers both at once, and\nkeeps ``[]`` — the only remaining shape that reaches the service as a write —\nas the deliberate clear.","operationId":"set_my_org_palette_api_v1_organization_palette_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaletteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_BrandingResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/organization/from-name":{"put":{"tags":["organization"],"summary":"Set My Org From Name","description":"Set or clear the active org's outbound sender display name (WLAI-313).\n\nIts own route rather than a field on an omnibus branding PATCH, matching the\nshape ``brand-color`` and ``logo`` already have: each branding attribute is\nwritten independently, so a client that only knows about one of them cannot\nblank the others by omitting them.\n\nPUT rather than PATCH because the body carries the field's whole value and an\nabsent one means \"clear\" — the same convention as ``brand-color``.\n\nEntitlement-gated like every other branding WRITE: an org that does not hold\n``white_label_branding`` cannot send as itself (403).\n\nVALIDATION LIVES IN THE SERVICE, not on the model, because the dangerous case\nis not a length: a CR or LF in a display name is header injection once the\nvalue reaches the ``{name} <addr>`` interpolation on the send path, and\nnothing downstream re-checks it.","operationId":"set_my_org_from_name_api_v1_organization_from_name_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FromNameRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_BrandingResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/organization/logo":{"post":{"tags":["organization"],"summary":"Upload My Org Logo","description":"Replace the active org's logo.\n\nSame two-stage size check as the admin route: the declared-size precheck runs\nbefore the org lookup so an obviously oversized upload costs neither a DB\nround trip nor the read into memory, and ``validate_logo_bytes`` inside the\nservice is the authority on the bytes actually received.\n\nREPLACING NEVER DELETES. The superseded object stays in R2 and its key moves\nto the tombstone — see ``org_branding_service.upload_logo``.","operationId":"upload_my_org_logo_api_v1_organization_logo_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_my_org_logo_api_v1_organization_logo_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_BrandingResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["organization"],"summary":"Delete My Org Logo","description":"Unlink the active org's logo.\n\nNOTHING IS DELETED FROM R2 — the object survives and its key moves to the\ntombstone, so the removal is reversible (WLAI-310's ruling). Idempotent:\nremoving an absent logo is a 200 with an empty branding payload, matching the\nadmin route.\n\nNot entitlement-gated on purpose. A lapsed org must be able to take its logo\ndown; refusing that would trap branding in place at exactly the moment the\ncontract says it should stop being used.","operationId":"delete_my_org_logo_api_v1_organization_logo_delete","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_BrandingResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/organization/members/{profile_id}":{"patch":{"tags":["organization"],"summary":"Update Member Role","description":"T14 — owner sets a member's role in the active org. Refuses\ndemoting the last owner (409). Seat ledger recomputes in the service.","operationId":"update_member_role_api_v1_organization_members__profile_id__patch","parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMemberRoleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_MemberResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["organization"],"summary":"Remove Org Member","description":"T15 — owner removes a member from the active org. Refuses removing\nthe last owner (409); cascades the member's property memberships\nwithin the org; recomputes the seat ledger (all in the service).","operationId":"remove_org_member_api_v1_organization_members__profile_id__delete","parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_RemoveMemberResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/organization/audit-log":{"get":{"tags":["organization"],"summary":"Get My Org Audit Log","description":"T16 — owner reads the active org's audit log. ``actions`` CSV +\n``days`` filters; ``limit`` capped at 500.","operationId":"get_my_org_audit_log_api_v1_organization_audit_log_get","parameters":[{"name":"actions","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"CSV of action strings to filter to","title":"Actions"},"description":"CSV of action strings to filter to"},{"name":"days","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Only entries within the last N days","title":"Days"},"description":"Only entries within the last N days"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AuditLogResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/organization/my-membership":{"delete":{"tags":["organization"],"summary":"Leave My Organization","description":"Self-leave the active org. Any member may leave; the last owner\ncannot (409 — transfer ownership first). Cascades property\nmemberships + recomputes seats (service).","operationId":"leave_my_organization_api_v1_organization_my_membership_delete","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/organization/custom-domain":{"get":{"tags":["organization"],"summary":"Get My Org Custom Domain","description":"The active org's custom domain, status and live DNS instructions.\n\nNot entitlement-gated, like the branding read: an org whose add-on lapsed\nstill needs to see that a domain is on file. ``available`` says whether a\ndomain can be set.","operationId":"get_my_org_custom_domain_api_v1_organization_custom_domain_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CustomDomainResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["organization"],"summary":"Set My Org Custom Domain","description":"Set (or change) the active org's custom domain.","operationId":"set_my_org_custom_domain_api_v1_organization_custom_domain_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDomainSetRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CustomDomainResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["organization"],"summary":"Remove My Org Custom Domain","description":"Remove the active org's custom domain from Cloudflare and Vercel.\n\nNot entitlement-gated: removal must stay possible after the add-on lapses.","operationId":"remove_my_org_custom_domain_api_v1_organization_custom_domain_delete","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CustomDomainResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/organization/custom-domain/refresh":{"post":{"tags":["organization"],"summary":"Refresh My Org Custom Domain","description":"Re-check now instead of waiting for the next poller pass.","operationId":"refresh_my_org_custom_domain_api_v1_organization_custom_domain_refresh_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CustomDomainResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/weather":{"get":{"tags":["weather"],"summary":"Get Weather","description":"Current conditions + 72h forward forecast, plus a 3-day rollup.","operationId":"get_weather_api_v1_weather_get","parameters":[{"name":"property_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Property whose coordinates anchor the forecast","title":"Property Id"},"description":"Property whose coordinates anchor the forecast"},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_WeatherResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/invitations":{"get":{"tags":["properties"],"summary":"List Invitations","description":"Return pending property invitations for the current user.\n\nThe current invitation flow adds members directly (no pending state),\nso this always returns an empty list.  The endpoint exists so the\nfrontend ``usePendingInvitations`` hook doesn't 404/500 on load.","operationId":"list_invitations_api_v1_properties_invitations_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties":{"get":{"tags":["properties"],"summary":"List Properties","operationId":"list_properties_api_v1_properties_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_PropertyResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["properties"],"summary":"Create Property","operationId":"create_property_api_v1_properties_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PropertyResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}":{"get":{"tags":["properties"],"summary":"Get Property","operationId":"get_property_api_v1_properties__property_id__get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PropertyResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["properties"],"summary":"Update Property","operationId":"update_property_api_v1_properties__property_id__put","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PropertyResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["properties"],"summary":"Delete Property","operationId":"delete_property_api_v1_properties__property_id__delete","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["properties"],"summary":"Patch Property","operationId":"patch_property_api_v1_properties__property_id__patch","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PropertyResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/complete-setup":{"post":{"tags":["properties"],"summary":"Complete Setup","description":"Validate the onboarding required set and flip ``setup_complete`` true.\n\nValidates the property's CURRENT persisted state (the FE saves fields via\nPUT/PATCH first). Missing required fields → 422 with field-level errors;\nnothing is flipped. Global by construction: keyed on the property, no\nper-account path.","operationId":"complete_setup_api_v1_properties__property_id__complete_setup_post","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CompleteSetupResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/deactivate":{"post":{"tags":["properties"],"summary":"Deactivate Property","description":"Deactivate a property: read-only retain (R-3). Owner-only.\n\nR-1: the tier cap slot is STILL CONSUMED. Only DELETE frees it. The cap\ncounters filter ``deleted_at`` and never look at ``deactivated_at``, so this\nholds with no cap-side code — see org_tier_limits_service.\nR-2: retention keeps running. Deactivation pauses nothing.","operationId":"deactivate_property_api_v1_properties__property_id__deactivate_post","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PropertyResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/reactivate":{"post":{"tags":["properties"],"summary":"Reactivate Property","description":"Reactivate a deactivated property — the only path back to writable (R-3).\n\nDeliberately NOT behind ``require_property_access``: that dependency refuses\nwrites to a deactivated property (R-16), which would make this route\nunreachable for the exact state it exists to clear. The owner check below is\ntherefore done inline, and is the same owner-level bar ``/deactivate`` uses.\n\nA soft-deleted property is NOT reactivatable. Deletion is the terminal state\nand ``deleted_at`` outranks ``deactivated_at`` everywhere; offering a path\nback from it here would resurrect a deleted property through a side door.","operationId":"reactivate_property_api_v1_properties__property_id__reactivate_post","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PropertyResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/boundary":{"get":{"tags":["properties"],"summary":"Get Property Boundary","operationId":"get_property_boundary_api_v1_properties__property_id__boundary_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_BoundaryResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["properties"],"summary":"Update Property Boundary","operationId":"update_property_boundary_api_v1_properties__property_id__boundary_put","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoundaryUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_BoundaryResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["properties"],"summary":"Patch Property Boundary","operationId":"patch_property_boundary_api_v1_properties__property_id__boundary_patch","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoundaryUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_BoundaryResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/members":{"post":{"tags":["properties"],"summary":"Invite Member","operationId":"invite_member_api_v1_properties__property_id__members_post","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberInvite"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_MemberInviteResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["properties"],"summary":"List Members","description":"List members of a property. Optional ``?role=`` filter narrows to a\nsingle role (Asana 1215159514794828, S4). Omitting the param returns\nevery member (unchanged legacy behavior).","operationId":"list_members_api_v1_properties__property_id__members_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"role","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PropertyRole"},{"type":"null"}],"description":"Filter to members with this role only. Omit for all members.","title":"Role"},"description":"Filter to members with this role only. Omit for all members."},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__common__ApiResponse_list_MemberResponse____2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/overlays":{"get":{"tags":["properties"],"summary":"List Property Overlays","description":"List active overlays for the property, grouped by ``overlay_type``.\n\nThe grouped shape avoids a client-side re-bucket — the frontend\nmap renders one layer per overlay_type, so this matches its\nconsumption pattern.","operationId":"list_property_overlays_api_v1_properties__property_id__overlays_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"overlay_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/OverlayType"},{"type":"null"}],"title":"Overlay Type"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__list_PropertyOverlayResponse___"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["properties"],"summary":"Create Property Overlay","operationId":"create_property_overlay_api_v1_properties__property_id__overlays_post","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyOverlayCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PropertyOverlayResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/overlays/{overlay_id}":{"patch":{"tags":["properties"],"summary":"Update Property Overlay","operationId":"update_property_overlay_api_v1_properties__property_id__overlays__overlay_id__patch","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"overlay_id","in":"path","required":true,"schema":{"type":"string","title":"Overlay Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyOverlayUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PropertyOverlayResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["properties"],"summary":"Delete Property Overlay","operationId":"delete_property_overlay_api_v1_properties__property_id__overlays__overlay_id__delete","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"overlay_id","in":"path","required":true,"schema":{"type":"string","title":"Overlay Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/my-membership":{"delete":{"tags":["properties"],"summary":"Leave Property","description":"Self-leave a property the caller is a member of. Any member may\nleave; the last ``owner`` cannot (409 last_owner_required — transfer\nfirst). Property-scoped — independent of the org seat ledger.","operationId":"leave_property_api_v1_properties__property_id__my_membership_delete","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/cameras":{"get":{"tags":["cameras"],"summary":"List Cameras","operationId":"list_cameras_api_v1_properties__property_id__cameras_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"group_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Id"}},{"name":"device_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by device_type.name (e.g. 'trail_camera') or device_type_id (UUID).","title":"Device Type"},"description":"Filter by device_type.name (e.g. 'trail_camera') or device_type_id (UUID)."},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_CameraResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["cameras"],"summary":"Create Camera","operationId":"create_camera_api_v1_properties__property_id__cameras_post","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CameraCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CameraResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/cameras/bulk":{"post":{"tags":["cameras"],"summary":"Bulk Create Cameras","description":"Bulk create — partial success is a first-class outcome.\n\nEach row is wrapped in its own SAVEPOINT so a single bad row\ndoesn't poison the whole batch. Successful rows are persisted;\nfailed rows are reported back with their input index so the\nfrontend can map errors back to UI form rows.","operationId":"bulk_create_cameras_api_v1_properties__property_id__cameras_bulk_post","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkCameraCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_BulkCameraResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/cameras/{camera_id}":{"get":{"tags":["cameras"],"summary":"Get Camera In Property","operationId":"get_camera_in_property_api_v1_properties__property_id__cameras__camera_id__get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"camera_id","in":"path","required":true,"schema":{"type":"string","title":"Camera Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CameraResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["cameras"],"summary":"Patch Camera In Property","operationId":"patch_camera_in_property_api_v1_properties__property_id__cameras__camera_id__patch","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"camera_id","in":"path","required":true,"schema":{"type":"string","title":"Camera Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CameraUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CameraResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["cameras"],"summary":"Delete Camera In Property","description":"Soft-delete via the SoftDeleteMixin ``deleted_at`` column — the field\n``CameraRepository.list_for_property`` and the tier-cap counts actually\nfilter on, matching the flat ``DELETE /cameras/{id}`` route below.\n\nPreviously this set ``is_active = False``, but ``is_active`` is a separate\ndevice-state flag the list query ignores, so the camera stayed visible;\nworse, a row that was already ``is_active = False`` made the assignment a\nno-op that emitted no UPDATE at all (``updated_at`` never moved) — a silent\n204 over zero writes. We now write ``deleted_at`` and treat rows-affected\nas the source of truth so a no-op fails loudly instead of faking success.","operationId":"delete_camera_in_property_api_v1_properties__property_id__cameras__camera_id__delete","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","title":"Property Id"}},{"name":"camera_id","in":"path","required":true,"schema":{"type":"string","title":"Camera Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/cameras/import-gps":{"post":{"tags":["cameras"],"summary":"Import Camera Gps","description":"Bulk-update camera GPS coordinates from a CSV file.\n\nCSV columns: camera_name (or camera_id), latitude, longitude.\nMatches cameras by name or ID within the property, then updates coordinates.","operationId":"import_camera_gps_api_v1_properties__property_id__cameras_import_gps_post","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_camera_gps_api_v1_properties__property_id__cameras_import_gps_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_GPSImportSummary_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cameras/{camera_id}":{"put":{"tags":["cameras"],"summary":"Update Camera","operationId":"update_camera_api_v1_cameras__camera_id__put","parameters":[{"name":"camera_id","in":"path","required":true,"schema":{"type":"string","title":"Camera Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CameraUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CameraResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["cameras"],"summary":"Delete Camera","operationId":"delete_camera_api_v1_cameras__camera_id__delete","parameters":[{"name":"camera_id","in":"path","required":true,"schema":{"type":"string","title":"Camera Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["cameras"],"summary":"Get Camera","description":"WLAI-439: fetch one camera by id, whichever property it is on.\n\nSame shape as an item of ``GET /properties/{pid}/cameras`` and carries\n``property_id``, so a camera link works without knowing the active\nproperty. Follows the ``/stats`` pattern: the access check on the camera's\nown property runs before anything about the camera is returned.","operationId":"get_camera_api_v1_cameras__camera_id__get","parameters":[{"name":"camera_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Camera Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CameraResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cameras/{camera_id}/stats":{"get":{"tags":["cameras"],"summary":"Camera Stats","operationId":"camera_stats_api_v1_cameras__camera_id__stats_get","parameters":[{"name":"camera_id","in":"path","required":true,"schema":{"type":"string","title":"Camera Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CameraStats_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/features":{"get":{"tags":["map-features"],"summary":"List Features","operationId":"list_features_api_v1_properties__property_id__features_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"feature_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/MapFeatureType"},{"type":"null"}],"title":"Feature Type"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_MapFeatureResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["map-features"],"summary":"Create Feature","operationId":"create_feature_api_v1_properties__property_id__features_post","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MapFeatureCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_MapFeatureResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/features/bulk":{"post":{"tags":["map-features"],"summary":"Bulk Create Features","description":"Bulk create — partial success is first-class (mirrors the 098 reassign\nendpoint). Each row is isolated in its own SAVEPOINT so one bad row can't\npoison the batch. Schema validation already ran on parse, so per-row\nfailures here are DB-level faults reported back by input index.","operationId":"bulk_create_features_api_v1_properties__property_id__features_bulk_post","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MapFeatureBulkCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_MapFeatureBulkResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/features/{feature_id}":{"get":{"tags":["map-features"],"summary":"Get Feature","operationId":"get_feature_api_v1_properties__property_id__features__feature_id__get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"feature_id","in":"path","required":true,"schema":{"type":"string","title":"Feature Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_MapFeatureResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["map-features"],"summary":"Update Feature","operationId":"update_feature_api_v1_properties__property_id__features__feature_id__patch","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"feature_id","in":"path","required":true,"schema":{"type":"string","title":"Feature Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MapFeatureUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_MapFeatureResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["map-features"],"summary":"Delete Feature","operationId":"delete_feature_api_v1_properties__property_id__features__feature_id__delete","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"feature_id","in":"path","required":true,"schema":{"type":"string","title":"Feature Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/camera-placement":{"get":{"tags":["camera-placement"],"summary":"Get Camera Placement","operationId":"get_camera_placement_api_v1_properties__property_id__camera_placement_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CameraPlacementResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/device-groups":{"get":{"tags":["device-groups"],"summary":"List Device Groups","operationId":"list_device_groups_api_v1_properties__property_id__device_groups_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_DeviceGroupResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["device-groups"],"summary":"Create Device Group","operationId":"create_device_group_api_v1_properties__property_id__device_groups_post","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceGroupCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_DeviceGroupResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/device-groups/{group_id}":{"patch":{"tags":["device-groups"],"summary":"Update Device Group","operationId":"update_device_group_api_v1_properties__property_id__device_groups__group_id__patch","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceGroupUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_DeviceGroupResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["device-groups"],"summary":"Delete Device Group","description":"Soft delete — tears down the group from the user's view but\nleaves member rows intact. Cameras remain unmodified; only the\ngroup context disappears.","operationId":"delete_device_group_api_v1_properties__property_id__device_groups__group_id__delete","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/device-groups/{group_id}/members":{"post":{"tags":["device-groups"],"summary":"Add Group Members","operationId":"add_group_members_api_v1_properties__property_id__device_groups__group_id__members_post","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceGroupMemberAdd"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_DeviceGroupResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/device-groups/{group_id}/members/{camera_id}":{"delete":{"tags":["device-groups"],"summary":"Remove Group Member","operationId":"remove_group_member_api_v1_properties__property_id__device_groups__group_id__members__camera_id__delete","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}},{"name":"camera_id","in":"path","required":true,"schema":{"type":"string","title":"Camera Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/device-types":{"get":{"tags":["device-types"],"summary":"List Device Types","operationId":"list_device_types_api_v1_device_types_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_DeviceTypeResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/camera-portals":{"get":{"tags":["camera-portals"],"summary":"List Camera Portals","operationId":"list_camera_portals_api_v1_properties__property_id__camera_portals_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_CameraPortalResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["camera-portals"],"summary":"Create Camera Portal","operationId":"create_camera_portal_api_v1_properties__property_id__camera_portals_post","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CameraPortalCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CameraPortalResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/camera-portals/{portal_id}":{"put":{"tags":["camera-portals"],"summary":"Update Camera Portal","operationId":"update_camera_portal_api_v1_camera_portals__portal_id__put","parameters":[{"name":"portal_id","in":"path","required":true,"schema":{"type":"string","title":"Portal Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CameraPortalUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CameraPortalResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["camera-portals"],"summary":"Delete Camera Portal","operationId":"delete_camera_portal_api_v1_camera_portals__portal_id__delete","parameters":[{"name":"portal_id","in":"path","required":true,"schema":{"type":"string","title":"Portal Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/camera-portals/{portal_id}/sync":{"post":{"tags":["camera-portals"],"summary":"Trigger Sync","operationId":"trigger_sync_api_v1_camera_portals__portal_id__sync_post","parameters":[{"name":"portal_id","in":"path","required":true,"schema":{"type":"string","title":"Portal Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CameraPortalResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/stands":{"get":{"tags":["stand-ops"],"summary":"List Stands","operationId":"list_stands_api_v1_properties__property_id__stands_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/StandStatus"},{"type":"null"}],"title":"Status"}},{"name":"stand_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/StandType"},{"type":"null"}],"title":"Stand Type"}},{"name":"guide_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter to stands the guide is assigned for TODAY via hunt_assignments (Phase 5 callout C).","title":"Guide Id"},"description":"Filter to stands the guide is assigned for TODAY via hunt_assignments (Phase 5 callout C)."},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_StandResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["stand-ops"],"summary":"Create Stand","operationId":"create_stand_api_v1_properties__property_id__stands_post","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__common__ApiResponse_StandResponse___1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/stands/{stand_id}":{"get":{"tags":["stand-ops"],"summary":"Get Stand","operationId":"get_stand_api_v1_properties__property_id__stands__stand_id__get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"stand_id","in":"path","required":true,"schema":{"type":"string","title":"Stand Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__common__ApiResponse_StandResponse___1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["stand-ops"],"summary":"Patch Stand","operationId":"patch_stand_api_v1_properties__property_id__stands__stand_id__patch","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"stand_id","in":"path","required":true,"schema":{"type":"string","title":"Stand Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__common__ApiResponse_StandResponse___1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["stand-ops"],"summary":"Delete Stand","description":"Delete a stand, splitting on whether it carries any real history.\n\nWLAI-282. The original onboarding friction: a client typed the wrong\nlat/long into a brand-new stand and had no way to remove it — the\nonly control was an archive that left the mistake sitting in the\nlist forever.\n\n  * **No dependents** (no assignments ever, no notes, no hazards, no\n    harvest records, no cameras, no hunt sessions) → true hard\n    delete. Nothing of value is destroyed; this is a data-entry\n    mistake being undone.\n  * **Any dependent** → unchanged archive path: status flips to\n    ``maintenance`` exactly as before. The Never-Silently-Discard\n    invariant governs this branch and is untouched.\n\nThe response names which path ran (``{\"deleted\": \"hard\"|\"soft\"}``)\nplus, on the soft path, the tables that blocked — the caller cannot\ninfer it from the status code, and \"Archived\" vs \"Deleted\" is a\nmaterially different thing to tell the user.\n\nResponse shape note: this endpoint returned ``204 No Content``\nbefore WLAI-282. It now returns ``200`` with a body.","operationId":"delete_stand_api_v1_properties__property_id__stands__stand_id__delete","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"stand_id","in":"path","required":true,"schema":{"type":"string","title":"Stand Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_StandDeleteResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/stands/{stand_id}/status":{"patch":{"tags":["stand-ops"],"summary":"Patch Stand Status","description":"Manager-driven status update with a safety guard:\n\nA flip to ``available`` is blocked (409) when any high-severity\nhazard is still unresolved. Other transitions (e.g. → maintenance\nor → occupied) are unrestricted — the manager is taking explicit\nresponsibility.","operationId":"patch_stand_status_api_v1_properties__property_id__stands__stand_id__status_patch","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"stand_id","in":"path","required":true,"schema":{"type":"string","title":"Stand Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandStatusUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__common__ApiResponse_StandResponse___1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/stands/{stand_id}/assignments":{"get":{"tags":["hunt-assignments"],"summary":"List Assignments","operationId":"list_assignments_api_v1_properties__property_id__stands__stand_id__assignments_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"stand_id","in":"path","required":true,"schema":{"type":"string","title":"Stand Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_HuntAssignmentResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["hunt-assignments"],"summary":"Create Assignment","operationId":"create_assignment_api_v1_properties__property_id__stands__stand_id__assignments_post","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"stand_id","in":"path","required":true,"schema":{"type":"string","title":"Stand Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HuntAssignmentCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_HuntAssignmentResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/stands/{stand_id}/assignments/current":{"get":{"tags":["hunt-assignments"],"summary":"Get Current Assignment","description":"Today's assignment, falling back to the most recent open\n(un-cleared) assignment. Returns ``null`` when neither exists —\nthe UI omits the \"current hunt\" card in that case.","operationId":"get_current_assignment_api_v1_properties__property_id__stands__stand_id__assignments_current_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"stand_id","in":"path","required":true,"schema":{"type":"string","title":"Stand Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Union_HuntAssignmentResponse__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/stands/{stand_id}/assignments/{assignment_id}/clear":{"patch":{"tags":["hunt-assignments"],"summary":"Clear Assignment","description":"Clear an assignment. Phase 5 callout B: the response carries the\nfull ``AssignmentClearResult`` (assignment + ``prompt_harvest_record``)\n— the frontend reads ``prompt_harvest_record`` to decide whether to\nopen the Log Harvest modal right away.\n\nSTAND-001: managers (PropertyRole.owner / editor) can clear any\nassignment. Other roles can only clear assignments where they are\nthe assigned guide.","operationId":"clear_assignment_api_v1_properties__property_id__stands__stand_id__assignments__assignment_id__clear_patch","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"stand_id","in":"path","required":true,"schema":{"type":"string","title":"Stand Id"}},{"name":"assignment_id","in":"path","required":true,"schema":{"type":"string","title":"Assignment Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignmentClearRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AssignmentClearResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/stands/{stand_id}/notes":{"get":{"tags":["stand-notes"],"summary":"List Notes","operationId":"list_notes_api_v1_properties__property_id__stands__stand_id__notes_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"stand_id","in":"path","required":true,"schema":{"type":"string","title":"Stand Id"}},{"name":"note_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/StandNoteType"},{"type":"null"}],"title":"Note Type"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_StandNoteResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["stand-notes"],"summary":"Add Note","operationId":"add_note_api_v1_properties__property_id__stands__stand_id__notes_post","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"stand_id","in":"path","required":true,"schema":{"type":"string","title":"Stand Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandNoteCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_StandNoteResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/stands/{stand_id}/notes/{note_id}/resolve":{"patch":{"tags":["stand-notes"],"summary":"Resolve Note","description":"Resolve a maintenance note. Refuses (400) if the note is a\n``guide`` note — those are observations, not action items.","operationId":"resolve_note_api_v1_properties__property_id__stands__stand_id__notes__note_id__resolve_patch","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"stand_id","in":"path","required":true,"schema":{"type":"string","title":"Stand Id"}},{"name":"note_id","in":"path","required":true,"schema":{"type":"string","title":"Note Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_StandNoteResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/stands/{stand_id}/hazards":{"get":{"tags":["stand-hazards"],"summary":"List Hazards","operationId":"list_hazards_api_v1_properties__property_id__stands__stand_id__hazards_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"stand_id","in":"path","required":true,"schema":{"type":"string","title":"Stand Id"}},{"name":"include_resolved","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Resolved"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_StandHazardResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["stand-hazards"],"summary":"Add Hazard","operationId":"add_hazard_api_v1_properties__property_id__stands__stand_id__hazards_post","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"stand_id","in":"path","required":true,"schema":{"type":"string","title":"Stand Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandHazardCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_HazardMutationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/stands/{stand_id}/hazards/{hazard_id}/resolve":{"patch":{"tags":["stand-hazards"],"summary":"Resolve Hazard","description":"Resolve a hazard. The service re-evaluates stand status and may\nflag ``can_revert=True`` for a manager-confirm prompt. If\n``body.resolution_notes`` is non-empty, a matching maintenance\nStandNote is auto-created (Deviation 4).","operationId":"resolve_hazard_api_v1_properties__property_id__stands__stand_id__hazards__hazard_id__resolve_patch","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"stand_id","in":"path","required":true,"schema":{"type":"string","title":"Stand Id"}},{"name":"hazard_id","in":"path","required":true,"schema":{"type":"string","title":"Hazard Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HazardResolve"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_HazardMutationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/stands/{stand_id}/hazards/{hazard_id}":{"patch":{"tags":["stand-hazards"],"summary":"Update Hazard","description":"Generic partial-update for a hazard (Asana 1215159576788809, M2).\n\nAccepts a HazardUpdate body with optional ``severity`` and/or\n``description``. The /resolve sub-route remains the only path that\nflips ``is_resolved`` — that flow auto-creates a StandNote and\ncaptures resolved_by attribution, which a generic patch shouldn't\nbypass. Stand status is re-evaluated after the update because a\nseverity change can force a stand into (or out of) maintenance.","operationId":"update_hazard_api_v1_properties__property_id__stands__stand_id__hazards__hazard_id__patch","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"stand_id","in":"path","required":true,"schema":{"type":"string","title":"Stand Id"}},{"name":"hazard_id","in":"path","required":true,"schema":{"type":"string","title":"Hazard Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HazardUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_HazardMutationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/stands/{stand_id}/harvests":{"get":{"tags":["harvests"],"summary":"List Stand Harvests","operationId":"list_stand_harvests_api_v1_properties__property_id__stands__stand_id__harvests_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"stand_id","in":"path","required":true,"schema":{"type":"string","title":"Stand Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_HarvestRecordResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["harvests"],"summary":"Log Harvest","operationId":"log_harvest_api_v1_properties__property_id__stands__stand_id__harvests_post","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"stand_id","in":"path","required":true,"schema":{"type":"string","title":"Stand Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HarvestRecordCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_HarvestRecordResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/harvests":{"get":{"tags":["harvests"],"summary":"List Property Harvests","description":"Property-wide harvest log with species + date-range filters.\n\nFilters are applied post-fetch from the service's base query —\npushed down to SQL via a small inline filter pass since the\nservice's ``get_harvests`` already supports property scoping.","operationId":"list_property_harvests_api_v1_properties__property_id__harvests_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"species","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date To"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_HarvestRecordResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/harvests/export":{"get":{"tags":["harvests"],"summary":"Export Property Harvests Csv","description":"CSV export for state-DNR compliance reporting.\n\nContent-Type and Content-Disposition headers are set inside the\nservice — this handler returns the StreamingResponse verbatim. The\nfilename pattern is ``harvests_{property_id}_{YYYY-MM-DD}.csv``.","operationId":"export_property_harvests_csv_api_v1_properties__property_id__harvests_export_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/stands/{stand_id}/best-window":{"get":{"tags":["best-window"],"summary":"Get Stand Best Window","description":"Live-compute on cache miss. Use this for the per-stand detail page.","operationId":"get_stand_best_window_api_v1_properties__property_id__stands__stand_id__best_window_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"stand_id","in":"path","required":true,"schema":{"type":"string","title":"Stand Id"}},{"name":"date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_BestWindowResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/best-window":{"get":{"tags":["best-window"],"summary":"List Property Best Window","description":"Cache-only table for the Stand List View 'Best Window' column.\n\nStands without a fresh score return ``cached=false, score=null``.\nNEVER triggers live computation — see module docstring.","operationId":"list_property_best_window_api_v1_properties__property_id__best_window_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_PropertyBestWindowRow__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/predator-latest":{"get":{"tags":["firstlight-alerts"],"summary":"Predator Latest","description":"Newest predator DETECTION by capture time for this property (WP-2 / R-i, R-4).\n\nThe banner answers \"is there predator pressure ON THIS LAND newer than I\ndismissed\" — a capture-time claim about when a predator was on the property, NOT\nwhen analysis fired (``Alert.triggered_at`` is operational and is not the axis).\nIt is derived from the joined detection photos (``max(Photo.taken_at)`` over\npredator detections, reusing ``TaxonomyService.is_predator`` so the banner matches\nthe alert engine's determination) and BYPASSES the Alert table entirely — the\nAlert table is unaltered (R-4). Consequently the banner is NOT bounded by alert\nthresholds, cooldowns, or when alerting began writing rows, and may legitimately\nshow pressure with no Alert row (correct under R-i — do not wire it into an alert\nlist that can be empty by design).\n\nProperty-scoped via ``require_property_access`` (tenancy, 422 on a malformed id),\nconsumer-reachable (no tier gate). ``last_detection_at`` is null with\n``undated=False`` when there is no predator pressure, and null with\n``undated=True`` when predators were detected but every such frame lacks a\ncapture time.","operationId":"predator_latest_api_v1_properties__property_id__predator_latest_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PredatorLatestResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/photos/upload-url":{"post":{"tags":["photos"],"summary":"Request Upload Url","operationId":"request_upload_url_api_v1_photos_upload_url_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadUrlRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_UploadUrlResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/photos/{photo_id}/confirm":{"post":{"tags":["photos"],"summary":"Confirm Upload","operationId":"confirm_upload_api_v1_photos__photo_id__confirm_post","parameters":[{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","title":"Photo Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmUploadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PhotoResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/photos":{"get":{"tags":["photos"],"summary":"List Photos","operationId":"list_photos_api_v1_properties__property_id__photos_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"camera_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Id"}},{"name":"species","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Single species key or comma-separated list (e.g. 'black_bear,wild_turkey'). 'no_animal' is a SENTINEL meaning 'analysis ran and found no animal' — it matches every no-animal label plus frames whose completed analysis recorded no species at all. It does NOT match un-analysed, pending, or failed frames ('not yet known' is a different state), nor 'unknown'/'no_cv_result' (unreadable frames). Composes with other keys.","title":"Species"},"description":"Single species key or comma-separated list (e.g. 'black_bear,wild_turkey'). 'no_animal' is a SENTINEL meaning 'analysis ran and found no animal' — it matches every no-animal label plus frames whose completed analysis recorded no species at all. It does NOT match un-analysed, pending, or failed frames ('not yet known' is a different state), nor 'unknown'/'no_cv_result' (unreadable frames). Composes with other keys."},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}},{"name":"time_of_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Time Of Day"}},{"name":"sex","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sex"}},{"name":"min_antler_points","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Antler Points"}},{"name":"favorites_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Favorites Only"}},{"name":"curation_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by curation tag (hit_list | trophy | mature | new)","title":"Curation Tag"},"description":"Filter by curation tag (hit_list | trophy | mature | new)"},{"name":"analysis_status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AnalysisStatus"},{"type":"null"}],"title":"Analysis Status"}},{"name":"max_confidence","in":"query","required":false,"schema":{"anyOf":[{"type":"number","maximum":1,"minimum":0},{"type":"null"}],"description":"Filter photos with confidence at or below this threshold","title":"Max Confidence"},"description":"Filter photos with confidence at or below this threshold"},{"name":"deer_only","in":"query","required":false,"schema":{"type":"boolean","description":"Only show deer species (for deer_only_gallery rule)","default":false,"title":"Deer Only"},"description":"Only show deer species (for deer_only_gallery rule)"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Per Page"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CursorPaginatedResponse_PhotoListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/photos/stats":{"get":{"tags":["photos"],"summary":"Photo Stats","description":"Gallery B3 — header metrics (captures / species / subjects / behaviors)\nscoped to the SAME filter set as ``GET /properties/{id}/photos``. Reuses the\ngallery filter layer (``_gallery_conditions``) so the numbers can never\ndisagree with the grid. subject_count > capture_count exactly when the\nfiltered set contains multi-subject frames.","operationId":"photo_stats_api_v1_properties__property_id__photos_stats_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"camera_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Id"}},{"name":"species","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Single species key or comma-separated list. 'no_animal' is a sentinel — see GET /properties/{property_id}/photos for its exact semantics.","title":"Species"},"description":"Single species key or comma-separated list. 'no_animal' is a sentinel — see GET /properties/{property_id}/photos for its exact semantics."},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}},{"name":"time_of_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Time Of Day"}},{"name":"sex","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sex"}},{"name":"min_antler_points","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Antler Points"}},{"name":"favorites_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Favorites Only"}},{"name":"curation_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by curation tag (hit_list | trophy | mature | new)","title":"Curation Tag"},"description":"Filter by curation tag (hit_list | trophy | mature | new)"},{"name":"analysis_status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AnalysisStatus"},{"type":"null"}],"title":"Analysis Status"}},{"name":"max_confidence","in":"query","required":false,"schema":{"anyOf":[{"type":"number","maximum":1,"minimum":0},{"type":"null"}],"title":"Max Confidence"}},{"name":"deer_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Deer Only"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PhotoStatsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/photos/batch-delete":{"post":{"tags":["photos"],"summary":"Batch Delete Photos","description":"Soft-delete multiple photos at once (P2-65: Gallery batch delete).\n\nRequires ``write_photos`` plus ``PropertyRole.editor`` or above on each\nproperty touched (WLAI-267). Photos on properties the caller has no\nrelationship to are skipped, not reported; being too junior on a property\nthe caller IS a member of is a 403 for the whole batch. Returns the count of\ndeleted photos. Accepts both POST (legacy clients) and DELETE (semantically\ncorrect).","operationId":"batch_delete_photos_api_v1_photos_batch_delete_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchDeleteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["photos"],"summary":"Batch Delete Photos","description":"Soft-delete multiple photos at once (P2-65: Gallery batch delete).\n\nRequires ``write_photos`` plus ``PropertyRole.editor`` or above on each\nproperty touched (WLAI-267). Photos on properties the caller has no\nrelationship to are skipped, not reported; being too junior on a property\nthe caller IS a member of is a 403 for the whole batch. Returns the count of\ndeleted photos. Accepts both POST (legacy clients) and DELETE (semantically\ncorrect).","operationId":"batch_delete_photos_api_v1_photos_batch_delete_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchDeleteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/dedup-groups/{dedup_group_id}":{"get":{"tags":["photos"],"summary":"Get Dedup Group","description":"Grouped read: the primary + its nested duplicates for one dedup group.\n\nReturns ``{primary, duplicates[], count}`` with the primary first. The\nduplicates carry ``skip_reason='duplicate'`` and are thumbnail-only.","operationId":"get_dedup_group_api_v1_properties__property_id__dedup_groups__dedup_group_id__get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"dedup_group_id","in":"path","required":true,"schema":{"type":"string","title":"Dedup Group Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/dedup-groups/{dedup_group_id}/delete-duplicates":{"post":{"tags":["photos"],"summary":"Delete Group Duplicates","description":"Bulk soft-delete every nested duplicate in a group (the primary is\nalways kept).\n\nWLAI-267: ``PropertyRole.editor``, raised from the dependency's ``viewer``\ndefault — the second of the two destructive viewer-level routes in the\napp/dependencies.py census note. This is the endpoint behind the\n\"Keep this one · delete N duplicates\" action, which WLAI-241 already\nestablished was operating on invisible tiles; hiding it from guides in the\nUI never prevented the call.","operationId":"delete_group_duplicates_api_v1_properties__property_id__dedup_groups__dedup_group_id__delete_duplicates_post","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"dedup_group_id","in":"path","required":true,"schema":{"type":"string","title":"Dedup Group Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/batches/{batch_id}/delete-duplicates":{"post":{"tags":["photos"],"summary":"Delete Batch Duplicates","description":"Bulk soft-delete every nested duplicate ingested in one upload batch\n(primaries are kept). The \"delete all duplicates in this batch\" action.\n\nWLAI-267: ``PropertyRole.editor``, raised from the dependency's ``viewer``\ndefault. This was one of the two DESTRUCTIVE routes named in the\n``require_property_access`` census note in app/dependencies.py as sitting at\nviewer level — a viewer could bulk-delete every duplicate in a batch. Same\nfloor and same reasoning as ``DELETE /photos/{photo_id}``.","operationId":"delete_batch_duplicates_api_v1_properties__property_id__batches__batch_id__delete_duplicates_post","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/photos/{photo_id}":{"delete":{"tags":["photos"],"summary":"Delete Photo","operationId":"delete_photo_api_v1_photos__photo_id__delete","parameters":[{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","title":"Photo Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["photos"],"summary":"Reassign Photo Camera","description":"DEFECT-098: (re)assign or clear a single photo's camera. ``camera_id``\nnull unassigns; a non-null camera must belong to the photo's property.\n\nWLAI-267 addendum — this route had NO TENANT CHECK AT ALL, a second and\ndistinct authorization bug found while auditing the delete surface. It held\nonly ``require_permission(PERM_WRITE_PHOTOS)``, which is an ORG-level\npermission that says nothing about which properties the caller may touch,\nplus ``_enforce_analysis_acl_for_photo``, which resolves\n``get_effective_permissions`` against the CALLER's own org context\n(``default_context_for(profile)``) with zero binding to the photo's\nproperty. So any write-capable user could reassign — or, with\n``camera_id: null``, unassign — any photo in ANY tenant by id. Unlike the\ndelete gap this was not a too-junior-role problem: it was cross-tenant.\n\nThe gate is ``assert_property_access``, NOT an \"is this photo's property in\nmy org\" test. Checked rather than assumed, and same-org-only would be\nWRONG twice over: individual (org-less) accounts get properties with\n``organization_id IS NULL`` (admin_account_service), so an org comparison\nrefuses an individual hunter their own photos; and the legitimate\ncross-cutting mechanisms this codebase actually has are the\n``PropertyMember`` plane, the DEFECT-054 org-plane fallback (org\nowner/manager → editor over that org's properties), and the CLAUDE.md §4.5\nfounder bypass. ``_authorize_property`` already encodes all three, so\nreusing it is both the narrower and the more correct check.\n\n``editor`` matches the sibling photo mutations (set_favorite,\nset_curation_tag, correct_photo_species). Photo lookup precedes the gate so\na missing photo stays 404, matching ``get_photo`` / ``delete_photo`` — the\nphoto-id 404/403 split is a pre-existing router-wide convention and is not\nchanged here.","operationId":"reassign_photo_camera_api_v1_photos__photo_id__patch","parameters":[{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","title":"Photo Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoCameraReassignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PhotoResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["photos"],"summary":"Get Photo","operationId":"get_photo_api_v1_photos__photo_id__get","parameters":[{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","title":"Photo Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PhotoDetailResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/photos/{photo_id}/favorite":{"post":{"tags":["photos"],"summary":"Toggle Favorite","operationId":"toggle_favorite_api_v1_photos__photo_id__favorite_post","parameters":[{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","title":"Photo Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PhotoResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["photos"],"summary":"Set Favorite","description":"Idempotent explicit set of the photo-detail modal star. Sibling of the\nlegacy ``POST /photos/{id}/favorite`` toggle — this variant takes an\nexplicit ``{is_favorite}`` so a double-tap converges instead of flipping.\nSame tenant + ACL gates as the toggle (BOLA 403 cross-property).","operationId":"set_favorite_api_v1_photos__photo_id__favorite_patch","parameters":[{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","title":"Photo Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoFavoriteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PhotoResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/photos/{photo_id}/curation_tag":{"patch":{"tags":["photos"],"summary":"Set Curation Tag","description":"Set (or clear, with ``null``) the singular curation classification.\n``body.curation_tag`` is validated against ``CURATION_TAGS`` at parse time\n(422 on an invalid value). Same tenant + ACL gates as the star.","operationId":"set_curation_tag_api_v1_photos__photo_id__curation_tag_patch","parameters":[{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","title":"Photo Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoCurationTagRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PhotoResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/photos/{photo_id}/capture-time":{"patch":{"tags":["photos"],"summary":"Set Capture Time","description":"Manually set (or clear) a photo's capture time — WP-7 rank-1 writer and the\nS4 remedy for null-capture rows.\n\nAuthorization is STRICT PROPERTY OWNERSHIP of the property that owns the photo\n(Addendum 1, item 6/7): not camera, not org membership, not any inherited ACL —\ndeliberately NOT the membership path behind the BOLA on Asana 1216908936959724.\nAn identical 403 is returned for a non-owner, a missing photo, and a missing\nproperty, withholding the existence signal (property-BOLA invariant: 422 on a\nmalformed id via the ``UUID`` path type, 403 nonexistent+unauthorized, never\n404). Owner-only ships this release; widening to shared members later is additive.\n\nSemantics:\n* a datetime writes ``taken_at`` + ``taken_at_source='manual_entry'``, which no\n  automated writer may overwrite (survives reanalysis and re-ingest, I-3);\n* ``null`` clears ONLY a value the caller previously set manually. Clearing a\n  camera-supplied timestamp is refused (422): an automated writer would refill it\n  with the same value, so a wrong camera time is corrected by supplying the right\n  one, not by clearing. This keeps a ``manual_entry`` row with a null ``taken_at``\n  unreachable (condition 3).\n\nSetting an absolute value is idempotent — safe under retry without an idempotency\nkey.","operationId":"set_capture_time_api_v1_photos__photo_id__capture_time_patch","parameters":[{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Photo Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoCaptureTimeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PhotoResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/photos/reassign-camera":{"post":{"tags":["photos"],"summary":"Bulk Reassign Photo Camera","description":"DEFECT-098: bulk (re)assign or clear camera on a photo selection. Partial\nsuccess — missing photos and cross-property mismatches are reported in\n``errors``; a non-null camera must belong to each photo's property.\n\nWLAI-267 addendum — the bulk twin of the single-photo tenant gap above, and\nit had the same total absence of a tenant check: ``bulk_reassign_camera``\nselects ``Photo.id.in_(photo_ids)`` with no property scoping whatsoever, so\na selection of foreign ids was reassigned wholesale. Authorization now runs\nover the DISTINCT property set of the requested photos before the service is\ncalled, at ``PropertyRole.editor``.\n\nThe two failure modes are split exactly as ``batch_delete_photos`` splits\nthem, and for the same reasons:\n\n  * TOO JUNIOR on a property the caller is related to\n    (``InsufficientRoleError``) → 403 for the whole request.\n  * NO RELATIONSHIP at all → the id is reported in ``errors`` as\n    ``not_found``, the SAME code a genuinely nonexistent photo gets, and the\n    row is left untouched. This is deliberately not a 403: a 403 here would\n    distinguish \"exists in someone else's tenant\" from \"does not exist\",\n    turning a list of guessed ids into a cross-tenant existence oracle. It\n    is emphatically not a silent success either — the caller is told, per\n    id, that nothing happened.\n\nOnly the authorized ids reach the service, so its own ``not_found`` and\n``camera_not_in_property`` codes keep their existing meanings.","operationId":"bulk_reassign_photo_camera_api_v1_photos_reassign_camera_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkPhotoReassignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_BulkPhotoReassignResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/photos/{photo_id}/correct":{"post":{"tags":["photos"],"summary":"Correct Photo Species","description":"Apply a user correction to a photo's analysis (FR7).\n\nAccepts an optional species correction and/or an optional array of per-subject\nattribute corrections in one request. Species is stored in ``corrected_species``\nand fed into ``species_correction_memory`` (original ``primary_species``\npreserved); attribute corrections are appended to ``analysis_corrections``,\nrow-scoped to the current generation. Both are applied in one transaction and\nthe updated detail envelope is returned so the modal renders without a refetch.","operationId":"correct_photo_species_api_v1_photos__photo_id__correct_post","parameters":[{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","title":"Photo Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeciesCorrectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PhotoDetailResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/photos/species-options":{"get":{"tags":["photos"],"summary":"Property Species Options","description":"Every species EVER recorded on this property, for the gallery's species\nfilter dropdown.\n\nDELIBERATELY TAKES NO FILTER PARAMS. This is the filter's own input, so it\nmust reflect the property's full dataset regardless of which camera, date, or\ntag filter is active when the dropdown opens — otherwise options vanish as\nthe user filters. It replaces deriving options from loaded photo pages, which\nmade the list grow on scroll and change with the active filter.\n\nNOT the same as ``analytics/species-summary``: that is a TEMPORAL rollup and\ndrops ``taken_at IS NULL`` frames on the biological-time rule, so it\nunder-reports the vocabulary relative to what the grid shows. Those photos are\nin the grid and must be filterable.\n\nValues are canonical and variant-collapsed — ``american_black_bear`` folds\ninto ``black_bear``, and every no-animal literal into one \"No animal\ndetected\" entry. Each ``count`` is what selecting that option returns.","operationId":"property_species_options_api_v1_properties__property_id__photos_species_options_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_SpeciesOptionResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/photos":{"get":{"tags":["photos"],"summary":"List Photos Alias","operationId":"list_photos_alias_api_v1_photos_get","parameters":[{"name":"property_id","in":"query","required":true,"schema":{"type":"string","description":"Property scope (required for alias)","title":"Property Id"},"description":"Property scope (required for alias)"},{"name":"camera_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Id"}},{"name":"species","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Single species key or comma-separated list.","title":"Species"},"description":"Single species key or comma-separated list."},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}},{"name":"time_of_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Time Of Day"}},{"name":"sex","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sex"}},{"name":"min_antler_points","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Antler Points"}},{"name":"is_favorite","in":"query","required":false,"schema":{"type":"boolean","description":"Maps to favorites_only on the canonical handler.","default":false,"title":"Is Favorite"},"description":"Maps to favorites_only on the canonical handler."},{"name":"analysis_status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AnalysisStatus"},{"type":"null"}],"title":"Analysis Status"}},{"name":"max_confidence","in":"query","required":false,"schema":{"anyOf":[{"type":"number","maximum":1,"minimum":0},{"type":"null"}],"title":"Max Confidence"}},{"name":"deer_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Deer Only"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Maps to per_page.","default":50,"title":"Limit"},"description":"Maps to per_page."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"description":"Offset-based pagination, max 1000.","default":0,"title":"Offset"},"description":"Offset-based pagination, max 1000."},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CursorPaginatedResponse_PhotoListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/photos/{photo_id}/reanalyze":{"post":{"tags":["photos"],"summary":"Reanalyze Photo Alias","operationId":"reanalyze_photo_alias_api_v1_photos__photo_id__reanalyze_post","parameters":[{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","title":"Photo Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ReanalyzeRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/photos/{photo_id}/notes":{"get":{"tags":["photo-notes"],"summary":"List Photo Notes","description":"List a photo's notes, newest-first, with author attribution +\ncreated/updated timestamps. Any property member (viewer+) may read.","operationId":"list_photo_notes_api_v1_photos__photo_id__notes_get","parameters":[{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","title":"Photo Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_PhotoNoteResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["photo-notes"],"summary":"Create Photo Note","description":"Create a note authored by the current user. Requires editor membership\nof the photo's property.","operationId":"create_photo_note_api_v1_photos__photo_id__notes_post","parameters":[{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","title":"Photo Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoNoteCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PhotoNoteResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/photos/{photo_id}/notes/{note_id}":{"patch":{"tags":["photo-notes"],"summary":"Update Photo Note","description":"Edit a note. Author-only — a 403 if the caller is not the author, even\nwith editor rights on the property. Bumps ``updated_at``.","operationId":"update_photo_note_api_v1_photos__photo_id__notes__note_id__patch","parameters":[{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","title":"Photo Id"}},{"name":"note_id","in":"path","required":true,"schema":{"type":"string","title":"Note Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoNoteUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PhotoNoteResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["photo-notes"],"summary":"Delete Photo Note","description":"Delete a note. Author-only (403 otherwise).","operationId":"delete_photo_note_api_v1_photos__photo_id__notes__note_id__delete","parameters":[{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","title":"Photo Id"}},{"name":"note_id","in":"path","required":true,"schema":{"type":"string","title":"Note Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/photos/{photo_id}/share":{"post":{"tags":["photo-shares"],"summary":"Create Share Link","description":"Create a public share link for a photo. When ``recipient_email`` is\npresent, also sends the branded email; otherwise just returns the link for\nthe FE to copy/share. Editor membership of the photo's property required.","operationId":"create_share_link_api_v1_photos__photo_id__share_post","parameters":[{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","title":"Photo Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ShareCreateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["photo-shares"],"summary":"List Share Links","description":"List a photo's share links (newest-first) so the owner can see + revoke\nthem. Editor membership required.","operationId":"list_share_links_api_v1_photos__photo_id__share_get","parameters":[{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","title":"Photo Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_ShareLinkResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/photos/{photo_id}/share/{token}/revoke":{"post":{"tags":["photo-shares"],"summary":"Revoke Share Link","description":"Revoke a link (creator or property owner only). After revoke the public\nGET returns 410. Kept off the unauthenticated ``/share/{token}`` path so that\nsurface stays strictly GET-only + unauth.","operationId":"revoke_share_link_api_v1_photos__photo_id__share__token__revoke_post","parameters":[{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","title":"Photo Id"}},{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ShareLinkResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analysis/photos/{photo_id}/analyze":{"post":{"tags":["analysis"],"summary":"Trigger Analysis","operationId":"trigger_analysis_api_v1_analysis_photos__photo_id__analyze_post","parameters":[{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","title":"Photo Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analysis/photos/batch-analyze":{"post":{"tags":["analysis"],"summary":"Trigger Batch Analysis","operationId":"trigger_batch_analysis_api_v1_analysis_photos_batch_analyze_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchAnalyzeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analysis/analyses/{analysis_id}":{"get":{"tags":["analysis"],"summary":"Get Analysis","operationId":"get_analysis_api_v1_analysis_analyses__analysis_id__get","parameters":[{"name":"analysis_id","in":"path","required":true,"schema":{"type":"string","title":"Analysis Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AnalysisResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["analysis"],"summary":"Update Analysis","operationId":"update_analysis_api_v1_analysis_analyses__analysis_id__put","parameters":[{"name":"analysis_id","in":"path","required":true,"schema":{"type":"string","title":"Analysis Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalysisUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AnalysisResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analysis/photos/{photo_id}/analysis":{"get":{"tags":["analysis"],"summary":"Get Photo Analysis","operationId":"get_photo_analysis_api_v1_analysis_photos__photo_id__analysis_get","parameters":[{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","title":"Photo Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Union_AnalysisResponse__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["analysis"],"summary":"Remove Analysis","description":"Remove all AI analysis data from a photo.\n\nDeletes the analysis record and resets the photo's analysis_status\nto 'pending'. The photo itself is preserved — only AI-generated\nclassifications are removed. The user can then re-trigger analysis\nor leave the photo unanalyzed.","operationId":"remove_analysis_api_v1_analysis_photos__photo_id__analysis_delete","parameters":[{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","title":"Photo Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analysis/photos/{photo_id}/reanalyze":{"post":{"tags":["analysis"],"summary":"Reanalyze Photo","description":"Re-run AI analysis on a photo, optionally with a species hint.\n\nIf species_hint is provided, Claude is told the user has confirmed\nthat species and should focus on detailed attributes (antler score,\nbody condition, age, behavior) rather than identification.\n\nIf species_hint is omitted, the photo is re-analyzed from scratch\nwith the latest model and regional species context.\n\nThe previous analysis is deleted before re-analysis. Counts toward\nthe user's monthly analysis quota.","operationId":"reanalyze_photo_api_v1_analysis_photos__photo_id__reanalyze_post","parameters":[{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","title":"Photo Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ReanalyzeRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/intelligence/photo/{photo_id}":{"get":{"tags":["intelligence"],"summary":"Get Photo Analysis","description":"Return the active-version AI analysis for ``photo_id``.\n\nRenders three states for the UI:\n\n* ``analysis`` populated → \"AI says X with Y% confidence\".\n* ``analysis`` null + ``photo_analysis_status=\"pending\"`` or\n  ``\"processing\"`` → \"Analysis pending\".\n* ``analysis`` null + ``photo_analysis_status=\"failed\"`` →\n  \"Analysis failed\" subtle message.","operationId":"get_photo_analysis_api_v1_intelligence_photo__photo_id__get","parameters":[{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","description":"Photo id","title":"Photo Id"},"description":"Photo id"},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PhotoAnalysisEnvelope_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/intelligence/search/species":{"get":{"tags":["intelligence"],"summary":"Search By Species","description":"Org-scoped photos whose AI ``primary_species`` matches.\n\nIndividual contexts get a clean 400 from ``require_active_org_id`` —\nthey have a single-property gallery and don't need cross-property\nspecies search; the frontend routes them to the legacy filter.","operationId":"search_by_species_api_v1_intelligence_search_species_get","parameters":[{"name":"species","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"title":"Species"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PhotoSearchResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/intelligence/search/behavior":{"get":{"tags":["intelligence"],"summary":"Search By Behavior","description":"Org-scoped photos whose AI ``behaviors`` array contains\n``behavior`` (e.g. ``\"feeding\"``).","operationId":"search_by_behavior_api_v1_intelligence_search_behavior_get","parameters":[{"name":"behavior","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"title":"Behavior"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PhotoSearchResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/analytics/dashboard":{"get":{"tags":["analytics"],"summary":"Dashboard","operationId":"dashboard_api_v1_properties__property_id__analytics_dashboard_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PropertyDashboard_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/analytics/species-summary":{"get":{"tags":["analytics"],"summary":"Species Summary","operationId":"species_summary_api_v1_properties__property_id__analytics_species_summary_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_SpeciesSummary__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/analytics/activity-by-hour":{"get":{"tags":["analytics"],"summary":"Activity By Hour","operationId":"activity_by_hour_api_v1_properties__property_id__analytics_activity_by_hour_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_HourlyActivity__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/analytics/camera-comparison":{"get":{"tags":["analytics"],"summary":"Camera Comparison","operationId":"camera_comparison_api_v1_properties__property_id__analytics_camera_comparison_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_CameraComparison__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/analytics/antler-distribution":{"get":{"tags":["analytics"],"summary":"Antler Distribution","operationId":"antler_distribution_api_v1_properties__property_id__analytics_antler_distribution_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_AntlerDistribution__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/analytics/sex-ratio":{"get":{"tags":["analytics"],"summary":"Sex Ratio","operationId":"sex_ratio_api_v1_properties__property_id__analytics_sex_ratio_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_SexRatio_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/analytics/location-summary":{"get":{"tags":["analytics"],"summary":"Location Summary","operationId":"location_summary_api_v1_properties__property_id__analytics_location_summary_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_LocationSummary_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/analytics/trends":{"get":{"tags":["analytics"],"summary":"Trends","operationId":"trends_api_v1_properties__property_id__analytics_trends_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_TrendPoint__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/analytics/weather-correlation":{"get":{"tags":["analytics"],"summary":"Weather Correlation","operationId":"weather_correlation_api_v1_properties__property_id__analytics_weather_correlation_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"species","in":"query","required":true,"schema":{"type":"string","description":"Species to correlate, e.g. 'white_tailed_deer'","title":"Species"},"description":"Species to correlate, e.g. 'white_tailed_deer'"},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_WeatherCorrelationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/analytics/activity-weather-timeline":{"get":{"tags":["analytics"],"summary":"Activity Weather Timeline","operationId":"activity_weather_timeline_api_v1_properties__property_id__analytics_activity_weather_timeline_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_ActivityWeatherDay__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/analytics/optimal-conditions":{"get":{"tags":["analytics"],"summary":"Optimal Conditions","operationId":"optimal_conditions_api_v1_properties__property_id__analytics_optimal_conditions_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"species","in":"query","required":true,"schema":{"type":"string","description":"Species to analyze, e.g. 'white_tailed_deer'","title":"Species"},"description":"Species to analyze, e.g. 'white_tailed_deer'"},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_OptimalConditionsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/analytics/movement-corridors":{"get":{"tags":["analytics"],"summary":"Movement Corridors","operationId":"movement_corridors_api_v1_properties__property_id__analytics_movement_corridors_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"species","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by species","title":"Species"},"description":"Filter by species"},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}},{"name":"max_transit_hours","in":"query","required":false,"schema":{"type":"integer","maximum":168,"minimum":1,"default":12,"title":"Max Transit Hours"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CorridorResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/analytics/movement-timeline":{"get":{"tags":["analytics"],"summary":"Movement Timeline","operationId":"movement_timeline_api_v1_properties__property_id__analytics_movement_timeline_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"species","in":"query","required":true,"schema":{"type":"string","description":"Species to track, e.g. 'white_tailed_deer'","title":"Species"},"description":"Species to track, e.g. 'white_tailed_deer'"},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}},{"name":"max_transit_hours","in":"query","required":false,"schema":{"type":"integer","maximum":168,"minimum":1,"default":12,"title":"Max Transit Hours"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_MovementEvent__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/analytics/corridor-summary":{"get":{"tags":["analytics"],"summary":"Corridor Summary","operationId":"corridor_summary_api_v1_properties__property_id__analytics_corridor_summary_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}},{"name":"max_transit_hours","in":"query","required":false,"schema":{"type":"integer","maximum":168,"minimum":1,"default":12,"title":"Max Transit Hours"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CorridorSummary_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/analytics/correction-stats":{"get":{"tags":["analytics"],"summary":"Correction Stats","description":"Correction rate and confusion patterns for a property.\n\nReturns: total analyses, correction count, correction rate,\ntop confusion pairs (original → corrected), and accuracy trend.","operationId":"correction_stats_api_v1_properties__property_id__analytics_correction_stats_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":90,"title":"Days"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analytics/accuracy":{"get":{"tags":["analytics"],"summary":"Public Accuracy Stats","description":"Public headline AI accuracy stats for marketing page. No auth required.","operationId":"public_accuracy_stats_api_v1_analytics_accuracy_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Union_PublicAccuracyStats__NoneType__"}}}}}}},"/api/v1/properties/{property_id}/animals":{"get":{"tags":["animals"],"summary":"List Animals","operationId":"list_animals_api_v1_properties__property_id__animals_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_AnimalResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["animals"],"summary":"Create Animal","operationId":"create_animal_api_v1_properties__property_id__animals_post","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnimalCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AnimalResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/animals/{animal_id}":{"get":{"tags":["animals"],"summary":"Get Animal","operationId":"get_animal_api_v1_animals__animal_id__get","parameters":[{"name":"animal_id","in":"path","required":true,"schema":{"type":"string","title":"Animal Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AnimalResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["animals"],"summary":"Update Animal","operationId":"update_animal_api_v1_animals__animal_id__put","parameters":[{"name":"animal_id","in":"path","required":true,"schema":{"type":"string","title":"Animal Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnimalUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AnimalResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/animals/{animal_id}/sightings":{"post":{"tags":["animals"],"summary":"Link Sighting","operationId":"link_sighting_api_v1_animals__animal_id__sightings_post","parameters":[{"name":"animal_id","in":"path","required":true,"schema":{"type":"string","title":"Animal Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SightingLink"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/automation/config":{"get":{"tags":["automation"],"summary":"Get Automation Config","operationId":"get_automation_config_api_v1_automation_config_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AutomationConfigResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["automation"],"summary":"Update Automation Config","operationId":"update_automation_config_api_v1_automation_config_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationConfigUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AutomationConfigResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/automation/reports":{"get":{"tags":["automation"],"summary":"List Reports","operationId":"list_reports_api_v1_automation_reports_get","parameters":[{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":10,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AutomationReportListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/automation/hunt-plans":{"get":{"tags":["automation"],"summary":"List Hunt Plans","operationId":"list_hunt_plans_api_v1_automation_hunt_plans_get","parameters":[{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":10,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AutomationHuntPlanListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/automation/run-now":{"post":{"tags":["automation"],"summary":"Run Now","description":"Enqueue a one-off run. 409 if a queued/running row already\nexists in the cool-down window — prevents UI thrashing from\nenqueueing dozens of concurrent runs.","operationId":"run_now_api_v1_automation_run_now_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AutomationRunNowResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/automation/run/{run_id}":{"get":{"tags":["automation"],"summary":"Get Run Status","operationId":"get_run_status_api_v1_automation_run__run_id__get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","description":"Run id","title":"Run Id"},"description":"Run id"},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AutomationRunLogResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/export/csv":{"get":{"tags":["export"],"summary":"Export Csv","operationId":"export_csv_api_v1_properties__property_id__export_csv_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"camera_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Id"}},{"name":"species","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/export/training.jsonl":{"get":{"tags":["export"],"summary":"Export Training Data","description":"Stream a JSONL training dataset for ML fine-tuning / evaluation.\n\nEach line is a self-contained JSON record with the user-corrected\nground-truth label alongside Claude's original prediction. This is the\nexport that powers the property-specific AI feedback loop.","operationId":"export_training_data_api_v1_properties__property_id__export_training_jsonl_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"corrections_only","in":"query","required":false,"schema":{"type":"boolean","description":"When true (default), only emit analyses the user has corrected. When false, emit every analyzed photo with its best label.","default":true,"title":"Corrections Only"},"description":"When true (default), only emit analyses the user has corrected. When false, emit every analyzed photo with its best label."},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/export/geojson":{"get":{"tags":["export"],"summary":"Export Geojson","description":"Export sightings as GeoJSON FeatureCollection.\n\nEach feature represents a camera with its aggregated species sightings.\nRequires cameras to have latitude/longitude set. Works with mapping\ntools, GIS software, and the interactive wildlife map (P1-45).","operationId":"export_geojson_api_v1_properties__property_id__export_geojson_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"camera_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Id"}},{"name":"species","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/export/kml":{"get":{"tags":["export"],"summary":"Export Kml","description":"Export sightings as KML for Google Earth, onX, and other mapping tools.\n\nIncludes styled placemarks (red for predator-dominant cameras, green for\nothers) with species breakdown in the description popup.","operationId":"export_kml_api_v1_properties__property_id__export_kml_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"camera_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Id"}},{"name":"species","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/subscriptions/checkout":{"post":{"tags":["subscriptions"],"summary":"Create Checkout","description":"Create a Stripe Checkout session and return the redirect URL.","operationId":"create_checkout_api_v1_subscriptions_checkout_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/subscriptions/portal":{"post":{"tags":["subscriptions"],"summary":"Create Portal Session","description":"Create a Stripe Billing Portal session for managing subscriptions.","operationId":"create_portal_session_api_v1_subscriptions_portal_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/subscriptions/prices":{"get":{"tags":["subscriptions"],"summary":"List Prices","description":"Return all available price IDs so the frontend never hardcodes them.","operationId":"list_prices_api_v1_subscriptions_prices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceListResponse"}}}}}}},"/api/v1/subscriptions/team-addon":{"post":{"tags":["subscriptions"],"summary":"Add Team Seats","description":"Purchase additional team member seats ($50/mo per 10-seat block).\n\nRequires an active Intelligence Plus subscription. Uses Stripe's\nquantity-based billing to add a metered team add-on to the existing\nsubscription.","operationId":"add_team_seats_api_v1_subscriptions_team_addon_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamAddonRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamAddonResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/subscriptions/pause":{"post":{"tags":["subscriptions"],"summary":"Pause Subscription","description":"Pause the user's subscription at the end of the current billing period.\n\nThe user retains access until the current period ends, but won't be\nbilled again until they resume.","operationId":"pause_subscription_api_v1_subscriptions_pause_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PauseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/subscriptions/resume":{"post":{"tags":["subscriptions"],"summary":"Resume Subscription","description":"Resume a paused subscription. Billing resumes immediately.","operationId":"resume_subscription_api_v1_subscriptions_resume_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PauseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/stripe":{"post":{"tags":["webhooks"],"summary":"Stripe Webhook","operationId":"stripe_webhook_api_v1_webhooks_stripe_post","parameters":[{"name":"Stripe-Signature","in":"header","required":true,"schema":{"type":"string","title":"Stripe-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/preferences":{"get":{"tags":["notifications"],"summary":"Get Preferences","operationId":"get_preferences_api_v1_notifications_preferences_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_NotificationPrefsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["notifications"],"summary":"Update Preferences","operationId":"update_preferences_api_v1_notifications_preferences_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationPrefsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_NotificationPrefsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications":{"get":{"tags":["notifications"],"summary":"List Notifications","description":"Feed: latest-first, scoped to ``current_user.id``. Founders and\nadmins see only their own — no cross-tenant view (Phase 4\nRuling 6).","operationId":"list_notifications_api_v1_notifications_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"unread_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unread Only"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_NotificationListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/unread-count":{"get":{"tags":["notifications"],"summary":"Get Unread Count","description":"Single-integer endpoint powering the bell-icon badge.\nSeparate from the feed so the header can poll cheaply on a\nshort interval — uses the partial\n``ix_notifications_profile_unread`` index.","operationId":"get_unread_count_api_v1_notifications_unread_count_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_UnreadCountResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/{notification_id}/read":{"patch":{"tags":["notifications"],"summary":"Mark Notification Read","operationId":"mark_notification_read_api_v1_notifications__notification_id__read_patch","parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","title":"Notification Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_NotificationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/read-all":{"post":{"tags":["notifications"],"summary":"Mark All Notifications Read","operationId":"mark_all_notifications_read_api_v1_notifications_read_all_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_MarkAllReadResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/email-signups":{"post":{"tags":["public"],"summary":"Create Email Signup","description":"Capture an email signup from the marketing site.\n\nReturns 200 in three cases:\n\n* New signup landed → response carries a fresh ``signup_id``.\n* Duplicate email (case-insensitive) → response has\n  ``signup_id: null`` (idempotent — never expose enumeration).\n* Database transient error caught by the IntegrityError fence →\n  treated as a duplicate so the user still sees the success\n  copy and is never blocked from re-submitting later.\n\nReturns 422 only on schema-level rejection (malformed email,\ninvalid segment, etc.) handled by FastAPI/Pydantic upstream.","operationId":"create_email_signup_api_v1_email_signups_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailSignupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailSignupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/support/tickets":{"post":{"tags":["support"],"summary":"Create Ticket","description":"Create a new support ticket.","operationId":"create_ticket_api_v1_support_tickets_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTicketRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["support"],"summary":"List My Tickets","description":"List the current user's tickets.","operationId":"list_my_tickets_api_v1_support_tickets_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/support/tickets/{ticket_id}":{"get":{"tags":["support"],"summary":"Get Ticket","description":"Get a single ticket with messages.","operationId":"get_ticket_api_v1_support_tickets__ticket_id__get","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","title":"Ticket Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/support/tickets/{ticket_id}/messages":{"post":{"tags":["support"],"summary":"Add Message","description":"Add a message to a ticket.","operationId":"add_message_api_v1_support_tickets__ticket_id__messages_post","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","title":"Ticket Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddMessageRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketMessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/support/admin/tickets":{"get":{"tags":["support"],"summary":"Admin List Tickets","description":"Admin: list all tickets with filters, sorted by a caller-chosen column.\n\nWLAI-404 follow-up: ``sort_by`` drives the order (default: last activity,\nnewest first). The old fixed ``status ASC`` lead key is gone — it was an\nalphabetical sort (closed < in_progress < open), and the admin page's status\ntabs already filter by status. The ORDER BY comes from\n:func:`~app.models.ticket.ticket_list_order_by`, shared with\n``GET /admin/support/tickets``; every ordering ends on ``id`` so offset\npagination is stable across pages.","operationId":"admin_list_tickets_api_v1_support_admin_tickets_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"priority","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"}},{"name":"assigned_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned To"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"sort_by","in":"query","required":false,"schema":{"enum":["last_activity","priority"],"type":"string","default":"last_activity","title":"Sort By"}},{"name":"order","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Order"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/support/admin/tickets/{ticket_id}":{"patch":{"tags":["support"],"summary":"Admin Update Ticket","description":"Admin: update ticket status, priority, or assignment.","operationId":"admin_update_ticket_api_v1_support_admin_tickets__ticket_id__patch","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","title":"Ticket Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTicketRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/system/banner":{"get":{"tags":["public"],"summary":"Get Deploy Banner","description":"Return the deploy banner state. Always 200.\n\nThe service layer is total (missing row / bad payload / DB failure all\ncollapse to the off state), and this second belt catches anything that\nescapes it — a broken banner must never block a login page render.","operationId":"get_deploy_banner_api_v1_system_banner_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_DeployBannerResponse_"}}}}}}},"/api/v1/species":{"get":{"tags":["Species Registry"],"summary":"Search Species","description":"Search the species registry.\n\nSupports full-text search across common and scientific names,\nfiltering by taxonomic class, conservation status, and U.S. state.","operationId":"search_species_api_v1_species_get","parameters":[{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"}},{"name":"class","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Class"}},{"name":"conservation_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conservation Status"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"wildlens_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Wildlens Only"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_SpeciesResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/species/stats":{"get":{"tags":["Species Registry"],"summary":"Get Registry Stats","description":"Get species registry statistics.","operationId":"get_registry_stats_api_v1_species_stats_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_RegistryStatsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/species/{species_id}":{"get":{"tags":["Species Registry"],"summary":"Get Species","description":"Get full species details by ID.","operationId":"get_species_api_v1_species__species_id__get","parameters":[{"name":"species_id","in":"path","required":true,"schema":{"type":"string","title":"Species Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_SpeciesResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/species/{species_id}/images":{"get":{"tags":["Species Registry"],"summary":"Get Species Images","description":"Get reference images for a species.","operationId":"get_species_images_api_v1_species__species_id__images_get","parameters":[{"name":"species_id","in":"path","required":true,"schema":{"type":"string","title":"Species Id"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"quality_grade","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quality Grade"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_SpeciesImageResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/species/lookup/{wildlens_key}":{"get":{"tags":["Species Registry"],"summary":"Lookup By Wildlens Key","description":"Look up a species by its WildLens canonical key (e.g. 'white_tailed_deer').","operationId":"lookup_by_wildlens_key_api_v1_species_lookup__wildlens_key__get","parameters":[{"name":"wildlens_key","in":"path","required":true,"schema":{"type":"string","title":"Wildlens Key"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_SpeciesResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/species/ingest":{"post":{"tags":["Species Registry"],"summary":"Trigger Ingestion","description":"Trigger a species data ingestion run (admin only).\n\nLaunches a background Celery task to fetch data from the specified\nsource (or all sources if none specified).","operationId":"trigger_ingestion_api_v1_species_ingest_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/species/ingest/status":{"get":{"tags":["Species Registry"],"summary":"Get Ingestion Status","description":"Get recent ingestion run statuses (admin only).","operationId":"get_ingestion_status_api_v1_species_ingest_status_get","parameters":[{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":10,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_IngestionStatusResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/species/{species_id}/enrich-images":{"post":{"tags":["Species Registry"],"summary":"Enrich Species Images","description":"Fetch additional images for a species from iNaturalist and GBIF (admin only).","operationId":"enrich_species_images_api_v1_species__species_id__enrich_images_post","parameters":[{"name":"species_id","in":"path","required":true,"schema":{"type":"string","title":"Species Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/species/training-dataset":{"post":{"tags":["Species Registry"],"summary":"Build Training Dataset","description":"Build and export a training dataset (admin only).\n\nCombines species registry images with WildLens verified photos.\nReturns JSONL, CSV, or Parquet format.","operationId":"build_training_dataset_api_v1_species_training_dataset_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingDatasetRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ecosystem/stats":{"get":{"tags":["ecosystem"],"summary":"Ecosystem Stats","description":"Public ecosystem statistics -- no auth required.","operationId":"ecosystem_stats_api_v1_ecosystem_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_EcosystemStatsResponse_"}}}}}}},"/api/v1/ecosystem/bucks/nearby":{"get":{"tags":["ecosystem"],"summary":"Nearby Bucks","description":"Find tracked bucks seen near a location.","operationId":"nearby_bucks_api_v1_ecosystem_bucks_nearby_get","parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number","maximum":90,"minimum":-90,"title":"Lat"}},{"name":"lng","in":"query","required":true,"schema":{"type":"number","maximum":180,"minimum":-180,"title":"Lng"}},{"name":"radius_miles","in":"query","required":false,"schema":{"type":"number","maximum":100,"minimum":1,"default":10,"title":"Radius Miles"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":730,"minimum":1,"default":365,"title":"Days"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_NearbyBuckResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ecosystem/bucks/{buck_id}":{"get":{"tags":["ecosystem"],"summary":"Get Buck","description":"Get a tracked buck with its sighting timeline.","operationId":"get_buck_api_v1_ecosystem_bucks__buck_id__get","parameters":[{"name":"buck_id","in":"path","required":true,"schema":{"type":"string","title":"Buck Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_TrackedBuckDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ecosystem/bucks/{buck_id}/sightings":{"get":{"tags":["ecosystem"],"summary":"Get Buck Sightings","description":"Get all sightings for a tracked buck (fuzzed locations, no property names).","operationId":"get_buck_sightings_api_v1_ecosystem_bucks__buck_id__sightings_get","parameters":[{"name":"buck_id","in":"path","required":true,"schema":{"type":"string","title":"Buck Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_BuckSightingResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ecosystem/properties/{property_id}/bucks":{"get":{"tags":["ecosystem"],"summary":"Property Buck Activity","description":"Bucks seen at a property with cross-property movement data.\n\nShows \"This 10-point was also seen at 3 other properties within 5 miles\"\nbut NEVER reveals other property names or owners.\n\nFDBK-15: this route previously bound the caller to ``_user`` and never read\nit — authenticated, but with no property check at any layer, so any user\ncould read any property's buck roster and per-property sighting counts. The\ndocstring's privacy promise above is real but protects the OTHER properties;\nthe target property's own data was the leak.\n\n``require_property_access`` is the right guard here rather than\n``assert_property_access`` because ``property_id`` is a path segment, which\nis what that dependency reads. It also covers the org plane (DEFECT-054), so\nan outfitter owner/manager still reaches their org's properties without a\nper-property row.\n\nORDERING MATTERS, and is the reason this is a dependency and not a call in\nthe body. FastAPI resolves dependencies BEFORE the handler runs, so the\ncheck lands ahead of the AI-opt-out short-circuit below. The other way round\nan unauthorized caller would get ``[]`` from the opt-out branch — a refusal\nshaped exactly like an empty roster, which is FDBK-15's R23 note and would\nhave reproduced the bug in a form that looks like data.","operationId":"property_buck_activity_api_v1_ecosystem_properties__property_id__bucks_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_PropertyBuckActivity__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/calibration/queue":{"get":{"tags":["calibration"],"summary":"List Calibration Queue","description":"Get cameras needing calibration for a property.","operationId":"list_calibration_queue_api_v1_properties__property_id__calibration_queue_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_CalibrationQueueItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/calibration/summary":{"get":{"tags":["calibration"],"summary":"Calibration Summary","description":"Get calibration summary stats for a property dashboard.","operationId":"calibration_summary_api_v1_properties__property_id__calibration_summary_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CalibrationSummary_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/calibration/{calibration_id}/photos":{"get":{"tags":["calibration"],"summary":"List Calibration Photos","description":"Get photos for a calibration review session.\n\nPhotos are sorted by confidence score (lowest first) so the user\nreviews the most uncertain classifications first.","operationId":"list_calibration_photos_api_v1_calibration__calibration_id__photos_get","parameters":[{"name":"calibration_id","in":"path","required":true,"schema":{"type":"string","title":"Calibration Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CalibrationPhotosResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/calibration/{calibration_id}/start":{"post":{"tags":["calibration"],"summary":"Start Calibration Session","description":"Start a calibration review session.","operationId":"start_calibration_session_api_v1_calibration__calibration_id__start_post","parameters":[{"name":"calibration_id","in":"path","required":true,"schema":{"type":"string","title":"Calibration Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CalibrationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/calibration/{calibration_id}/review":{"post":{"tags":["calibration"],"summary":"Record Photo Review","description":"Record that a photo was reviewed (confirmed or corrected).\n\nCall this after the user either confirms the AI classification or\nsubmits a correction for a photo during calibration.","operationId":"record_photo_review_api_v1_calibration__calibration_id__review_post","parameters":[{"name":"calibration_id","in":"path","required":true,"schema":{"type":"string","title":"Calibration Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordReviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CalibrationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/calibration/{calibration_id}/complete":{"post":{"tags":["calibration"],"summary":"Complete Calibration Session","description":"Mark a calibration as completed.","operationId":"complete_calibration_session_api_v1_calibration__calibration_id__complete_post","parameters":[{"name":"calibration_id","in":"path","required":true,"schema":{"type":"string","title":"Calibration Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CompleteCalibrationRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CalibrationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/calibration/{calibration_id}/skip":{"post":{"tags":["calibration"],"summary":"Skip Calibration Session","description":"Skip a calibration (dismiss the prompt).","operationId":"skip_calibration_session_api_v1_calibration__calibration_id__skip_post","parameters":[{"name":"calibration_id","in":"path","required":true,"schema":{"type":"string","title":"Calibration Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CalibrationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/rules":{"get":{"tags":["rules"],"summary":"Get Rules","operationId":"get_rules_api_v1_properties__property_id__rules_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PropertyRulesResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["rules"],"summary":"Update Rules","operationId":"update_rules_api_v1_properties__property_id__rules_put","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyRulesUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PropertyRulesResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/passkeys/register/begin":{"post":{"tags":["webauthn"],"summary":"Register Begin","description":"Start passkey registration. Returns PublicKeyCredentialCreationOptions.","operationId":"register_begin_api_v1_auth_passkeys_register_begin_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/passkeys/register/complete":{"post":{"tags":["webauthn"],"summary":"Register Complete","description":"Complete passkey registration. Verifies attestation and stores credential.","operationId":"register_complete_api_v1_auth_passkeys_register_complete_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterCompleteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/passkeys/authenticate/begin":{"post":{"tags":["webauthn"],"summary":"Authenticate Begin","description":"Start passkey authentication. Returns PublicKeyCredentialRequestOptions.","operationId":"authenticate_begin_api_v1_auth_passkeys_authenticate_begin_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/passkeys/authenticate/complete":{"post":{"tags":["webauthn"],"summary":"Authenticate Complete","description":"Complete passkey authentication. Verifies assertion.","operationId":"authenticate_complete_api_v1_auth_passkeys_authenticate_complete_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthenticateCompleteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/passkeys":{"get":{"tags":["webauthn"],"summary":"List Passkeys","description":"List all registered passkeys for the current user.","operationId":"list_passkeys_api_v1_auth_passkeys_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_PasskeyResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/passkeys/{passkey_id}":{"delete":{"tags":["webauthn"],"summary":"Delete Passkey","description":"Delete a registered passkey.","operationId":"delete_passkey_api_v1_auth_passkeys__passkey_id__delete","parameters":[{"name":"passkey_id","in":"path","required":true,"schema":{"type":"string","title":"Passkey Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/users":{"get":{"tags":["admin"],"summary":"List Users","operationId":"list_users_api_v1_admin_users_get","parameters":[{"name":"billing_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"monthly|season_pass|annual|free","title":"Billing Type"},"description":"monthly|season_pass|annual|free"},{"name":"tier","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"free|pro|elite|intelligence_plus","title":"Tier"},"description":"free|pro|elite|intelligence_plus"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"active|canceled|past_due|trialing","title":"Status"},"description":"active|canceled|past_due|trialing"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search by email or name","title":"Search"},"description":"Search by email or name"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Per Page"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_AdminUserRow__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/season-pass-expiring":{"get":{"tags":["admin"],"summary":"Season Pass Expiring","operationId":"season_pass_expiring_api_v1_admin_season_pass_expiring_get","parameters":[{"name":"days_threshold","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days Threshold"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_SeasonPassExpiringRow__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/revenue":{"get":{"tags":["admin"],"summary":"Revenue Breakdown","operationId":"revenue_breakdown_api_v1_admin_revenue_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_RevenueSummary__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/override":{"post":{"tags":["admin"],"summary":"Override Access","operationId":"override_access_api_v1_admin_override_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminOverrideRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AdminOverrideResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/requeue-failed-analyses":{"post":{"tags":["admin"],"summary":"Requeue Failed Analyses","description":"Reset failed analyses back to pending and dispatch for re-analysis.\n\nReusable admin tool — handles both the initial 7 stuck photos and\nany future failures that need a manual retry.","operationId":"requeue_failed_analyses_api_v1_admin_requeue_failed_analyses_post","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Max photos to requeue","default":100,"title":"Limit"},"description":"Max photos to requeue"},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/impersonate/end":{"post":{"tags":["admin"],"summary":"End Impersonation","description":"End an impersonation session. Frontend discards the token; this just audit-logs.","operationId":"end_impersonation_api_v1_admin_impersonate_end_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ImpersonateEndResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/impersonate/{user_id}":{"post":{"tags":["admin"],"summary":"Impersonate User","description":"Generate a short-lived impersonation token so an admin can view the app as a specific user.","operationId":"impersonate_user_api_v1_admin_impersonate__user_id__post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","description":"Target user UUID to impersonate","title":"User Id"},"description":"Target user UUID to impersonate"},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ImpersonateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/promo-codes":{"get":{"tags":["admin"],"summary":"List Promo Codes","description":"List all Stripe promotion codes.","operationId":"list_promo_codes_api_v1_admin_promo_codes_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_PromoCodeRow__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Create Promo Code","description":"Create a Stripe coupon + promotion code.","operationId":"create_promo_code_api_v1_admin_promo_codes_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromoCodeCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PromoCodeRow_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/system-health":{"get":{"tags":["admin"],"summary":"System Health","description":"Return system health: DB, Redis, recent syncs, worker heartbeat.","operationId":"system_health_api_v1_admin_system_health_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_SystemHealthResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/feature-flags":{"get":{"tags":["admin"],"summary":"Get Feature Flags","description":"Get all feature flags and their current state (core + integration).","operationId":"get_feature_flags_api_v1_admin_feature_flags_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/feature-flags/{flag_key}":{"patch":{"tags":["admin"],"summary":"Update Feature Flag","description":"Toggle a feature flag on/off.\n\nFor integration flags (integration_*), enabling requires extreme caution.\nIntegration flags should only be enabled after legal review and partnership agreements.","operationId":"update_feature_flag_api_v1_admin_feature_flags__flag_key__patch","parameters":[{"name":"flag_key","in":"path","required":true,"schema":{"type":"string","title":"Flag Key"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureTogglePatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/announcements":{"get":{"tags":["admin"],"summary":"List Announcements","description":"List active broadcast announcements.","operationId":"list_announcements_api_v1_admin_announcements_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Create Announcement","description":"Create a broadcast announcement visible to all users.","operationId":"create_announcement_api_v1_admin_announcements_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_BroadcastResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/announcements/{announcement_id}":{"delete":{"tags":["admin"],"summary":"Delete Announcement","description":"Remove a broadcast announcement.","operationId":"delete_announcement_api_v1_admin_announcements__announcement_id__delete","parameters":[{"name":"announcement_id","in":"path","required":true,"schema":{"type":"string","title":"Announcement Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/security-dashboard":{"get":{"tags":["admin"],"summary":"Security Dashboard","description":"Admin security overview: login stats, suspicious activity, API key usage.","operationId":"security_dashboard_api_v1_admin_security_dashboard_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/adoption-funnel":{"get":{"tags":["admin"],"summary":"Adoption Funnel","description":"User adoption funnel: signup → property → camera → upload → analysis.","operationId":"adoption_funnel_api_v1_admin_adoption_funnel_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/dead-letter-queue":{"get":{"tags":["admin"],"summary":"Dead Letter Queue","description":"List failed tasks in the dead-letter queue.","operationId":"dead_letter_queue_api_v1_admin_dead_letter_queue_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/dead-letter-queue/retry-all":{"post":{"tags":["admin"],"summary":"Retry All Dead Letter Tasks","description":"Replay every task currently in the dead-letter queue.","operationId":"retry_all_dead_letter_tasks_api_v1_admin_dead_letter_queue_retry_all_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/dead-letter-queue/{task_id}/replay":{"post":{"tags":["admin"],"summary":"Replay Dead Letter Task","description":"Re-submit a dead-lettered task for processing.","operationId":"replay_dead_letter_task_api_v1_admin_dead_letter_queue__task_id__replay_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/dead-letter-queue/{task_id}":{"delete":{"tags":["admin"],"summary":"Discard Dead Letter Task","description":"Permanently drop a dead-lettered task without re-running it (R1).\n\nReuses the existing ``dead_letter.discard_dead_letter`` helper.","operationId":"discard_dead_letter_task_api_v1_admin_dead_letter_queue__task_id__delete","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/benchmarks/run":{"post":{"tags":["admin"],"summary":"Run Benchmark","description":"Trigger an AI accuracy benchmark against ground-truth labels.","operationId":"run_benchmark_api_v1_admin_benchmarks_run_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BenchmarkRunCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_BenchmarkRunResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/benchmarks/results":{"get":{"tags":["admin"],"summary":"List Benchmark Results","description":"List past benchmark runs (newest first).","operationId":"list_benchmark_results_api_v1_admin_benchmarks_results_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_BenchmarkAccuracyTrend__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/benchmarks/results/{benchmark_id}":{"get":{"tags":["admin"],"summary":"Get Benchmark Detail","description":"Get full detail for a single benchmark run.","operationId":"get_benchmark_detail_api_v1_admin_benchmarks_results__benchmark_id__get","parameters":[{"name":"benchmark_id","in":"path","required":true,"schema":{"type":"string","description":"Benchmark run UUID","title":"Benchmark Id"},"description":"Benchmark run UUID"},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_BenchmarkRunResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/usage/global":{"get":{"tags":["admin"],"summary":"Admin Global Usage","operationId":"admin_global_usage_api_v1_admin_usage_global_get","parameters":[{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AdminGlobalUsageResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/usage/outfitters":{"get":{"tags":["admin"],"summary":"Admin Top Outfitters","operationId":"admin_top_outfitters_api_v1_admin_usage_outfitters_get","parameters":[{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AdminOutfitterUsageResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/usage/properties":{"get":{"tags":["admin"],"summary":"Admin Top Properties","operationId":"admin_top_properties_api_v1_admin_usage_properties_get","parameters":[{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":20,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AdminPropertyUsageResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/usage/timeseries":{"get":{"tags":["admin"],"summary":"Admin Timeseries","operationId":"admin_timeseries_api_v1_admin_usage_timeseries_get","parameters":[{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AdminTimeseriesResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/usage/errors":{"get":{"tags":["admin"],"summary":"Admin Errors","operationId":"admin_errors_api_v1_admin_usage_errors_get","parameters":[{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AdminErrorStatsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/onboarding/funnel":{"get":{"tags":["admin"],"summary":"Admin Onboarding Funnel","operationId":"admin_onboarding_funnel_api_v1_admin_onboarding_funnel_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AdminOnboardingFunnelResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/usage/ingest-performance":{"get":{"tags":["admin"],"summary":"Admin Ingest Performance","operationId":"admin_ingest_performance_api_v1_admin_usage_ingest_performance_get","parameters":[{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AdminIngestPerformanceResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/dev/wipe":{"post":{"tags":["admin"],"summary":"Admin Dev Wipe","description":"Execute (or dry-run preview) the dev-data wipe.\n\nResponse shape mirrors the dataclass returned by the CLI runner so\nthe frontend can render both preview and post-wipe summaries from\na single component. The ``log_file`` field is always set (a log is\nwritten even for dry-runs — useful when diagnosing what a given\npreview saw).","operationId":"admin_dev_wipe_api_v1_admin_dev_wipe_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevWipeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/dsar":{"get":{"tags":["admin"],"summary":"Admin List Dsar","operationId":"admin_list_dsar_api_v1_admin_dsar_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by status","title":"Status"},"description":"Filter by status"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/dsar/{dsar_id}":{"post":{"tags":["admin"],"summary":"Admin Update Dsar","description":"LEGACY — canonical path is ``PATCH /api/v1/admin/dsar/{id}``\nin :mod:`app.routers.admin_dsar` (System Admin BETA / Phase 4b).\nPOST stays for back-compat with the existing admin frontend on\n``require_admin``; new clients should call PATCH under\n``require_platform_admin`` per ADMIN-001.","operationId":"admin_update_dsar_api_v1_admin_dsar__dsar_id__post","parameters":[{"name":"dsar_id","in":"path","required":true,"schema":{"type":"string","description":"DSAR row UUID","title":"Dsar Id"},"description":"DSAR row UUID"},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DsarAdminUpdateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-dsar"],"summary":"Patch Dsar","description":"Update a DSAR's status / denial_reason / response_url.\n\nSpec §4.2 canonical method. The existing POST handler in\n:mod:`app.routers.admin` is preserved as a legacy alias for\nback-compat with the current admin frontend.\n\nLogs to admin_action_log with before/after status in the\npayload — admin_action_log is the authoritative compliance\nsource for ADMIN-* guardrails; the existing audit_logs write in\nthe POST handler is preserved separately (dual-write pattern\nmirrors Conflict 10 / ADMIN-004).","operationId":"patch_dsar_api_v1_admin_dsar__dsar_id__patch","parameters":[{"name":"dsar_id","in":"path","required":true,"schema":{"type":"string","description":"DSAR row UUID","title":"Dsar Id"},"description":"DSAR row UUID"},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_DsarAdminPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/create-account":{"post":{"tags":["admin"],"summary":"Admin Create Account","description":"Provision an Individual account.\n\nCreates Profile + a default Property named \"My Property\" +\nPropertyMember (role=owner). ``type=outfitter`` is refused with a 422\nby the schema (WLAI-399); outfitter orgs are created by\n``POST /admin/organizations``.\n\nCaveat (documented in PR-J2): the new Profile's UUID is\nfreshly generated, not matched to any Supabase auth.users\nrow. A claim-by-email step is required before the account\ncan authenticate; that flow is part of PR-J3 (invites).","operationId":"admin_create_account_api_v1_admin_create_account_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAccountRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CreateAccountResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/profiles/by-email":{"get":{"tags":["admin"],"summary":"Admin Find Profile By Email","description":"Direct case-insensitive lookup against ``profiles`` by email.\n\nReturns ``data: null`` (HTTP 200) when no match is found — the\noperator's wizard then knows the 409 they're staring at is a\n``stripe_customer_id`` / ``supabase_user_id`` / other-uniqueness\nconflict rather than the headline duplicate email. Returns the\nminimum fields needed to pass the result into the delete-account\nrecovery endpoint.","operationId":"admin_find_profile_by_email_api_v1_admin_profiles_by_email_get","parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string","minLength":3,"maxLength":320,"description":"Email to look up (case-insensitive)","title":"Email"},"description":"Email to look up (case-insensitive)"},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Union_dict__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/orphans-by-email":{"get":{"tags":["admin"],"summary":"Admin Inspect Orphans By Email","description":"Return the full row dossier for the given email — Profile +\nany Organizations the profile owns + memberships + Properties\nthe profile owns. Lets operators eyeball the orphan footprint\nbefore pulling the trigger on the matching DELETE.","operationId":"admin_inspect_orphans_by_email_api_v1_admin_orphans_by_email_get","parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string","minLength":3,"maxLength":320,"title":"Email"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Union_dict__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Admin Delete Orphans By Email","description":"Hard-delete every row tied to this email — Profile, owned\nProperties, PropertyMembers, OrganizationMembers, and the\nOrganization itself when the profile was its sole member.\nRefuses to delete founders.\n\nReturns 404 when no Profile matches.","operationId":"admin_delete_orphans_by_email_api_v1_admin_orphans_by_email_delete","parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string","minLength":3,"maxLength":320,"title":"Email"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/users/{user_id}/reset-password":{"post":{"tags":["admin"],"summary":"Admin Reset Password","description":"Reset an existing user's password.\n\nUse case: the user lost access. The admin generates (or types) a\nnew password, the response surface returns it once, the admin\nhands it off out-of-band. The user is flagged\n``must_change_password`` so the next sign-in forces them through\na change-password form.","operationId":"admin_reset_password_api_v1_admin_users__user_id__reset_password_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AdminPasswordWriteRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AdminPasswordWriteResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/users/{user_id}/set-temp-password":{"post":{"tags":["admin"],"summary":"Admin Set Temp Password","description":"Assign a temporary password to a freshly-provisioned account.\n\nFunctionally identical to ``reset-password``; the audit-log\nlabel diverges so the trail tells the difference between\n\"lost-access recovery\" and \"first-time provisioning\".","operationId":"admin_set_temp_password_api_v1_admin_users__user_id__set_temp_password_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AdminPasswordWriteRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AdminPasswordWriteResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/delete-account/{profile_id}":{"delete":{"tags":["admin"],"summary":"Admin Delete Account","description":"Hard-delete an admin-created account + its OOTB defaults.\n\nWorks for both Outfitter and Individual accounts. The service\ndecides whether the associated Organization can also go away\n(only when the profile was its sole member and no other\nProperty still references the org).","operationId":"admin_delete_account_api_v1_admin_delete_account__profile_id__delete","parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/hard-delete":{"post":{"tags":["admin"],"summary":"Admin Hard Delete","description":"Hard-delete a profile or property and all descendants (R2 included).\n\n``dry_run=true`` (default) → count-only dossier, no writes.\n``dry_run=false`` → execute + commit.","operationId":"admin_hard_delete_api_v1_admin_hard_delete_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HardDeleteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/create-team-member":{"post":{"tags":["admin"],"summary":"Admin Create Team Member","description":"Add a Profile to an existing Organization with a role.","operationId":"admin_create_team_member_api_v1_admin_create_team_member_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTeamMemberRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CreateTeamMemberResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/invite":{"post":{"tags":["admin"],"summary":"Admin Create Invite","description":"Create (or replace) a pending invite for an email.\n\nRe-issuing for an email with an outstanding unclaimed invite\nreplaces the prior token — there is at most one live invite\nper address. The response carries the user-facing\n``invite_url``; the admin delivers it out-of-band (no email\npipeline yet, per PR-J4 directive).\n\nNo billing, no permissions logic, no resend templates here.","operationId":"admin_create_invite_api_v1_admin_invite_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateInviteRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CreateInviteResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/dashboard-summary":{"get":{"tags":["admin"],"summary":"Admin Dashboard Summary","description":"Aggregate platform-health + actions-needed summary for the admin home.","operationId":"admin_dashboard_summary_api_v1_admin_dashboard_summary_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_DashboardSummaryResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/system-health-slo":{"get":{"tags":["admin"],"summary":"Admin System Health Slo","description":"Per-card SLO payload for the /admin/health page (single call on load).\n\nReturns the three uptime cards plus six SLO cards, each with its\ncurrent value, status vs thresholds, sparkline, and raw warn/crit.\nDelegates to AdminHealthService.aggregate_slo so the numbers can't\ndiverge from /admin/health/metrics. Fail-soft per card — a degraded\nsub-source yields a ``no_data`` card, never a 500.","operationId":"admin_system_health_slo_api_v1_admin_system_health_slo_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_SystemHealthSloResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/billing/create-customer":{"post":{"tags":["admin-billing"],"summary":"Create Customer","operationId":"create_customer_api_v1_admin_billing_create_customer_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBillingCustomerRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CreateBillingCustomerResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/billing/create-subscription":{"post":{"tags":["admin-billing"],"summary":"Create Subscription","operationId":"create_subscription_api_v1_admin_billing_create_subscription_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBillingSubscriptionRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CreateBillingSubscriptionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/billing/update-tier":{"post":{"tags":["admin-billing"],"summary":"Update Tier","operationId":"update_tier_api_v1_admin_billing_update_tier_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBillingTierRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_UpdateBillingTierResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/billing/summary":{"get":{"tags":["admin-billing"],"summary":"Admin Billing Summary","operationId":"admin_billing_summary_api_v1_admin_billing_summary_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_BillingSummaryResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/billing/export/monthly-close":{"get":{"tags":["admin-billing"],"summary":"Admin Billing Monthly Close","operationId":"admin_billing_monthly_close_api_v1_admin_billing_export_monthly_close_get","parameters":[{"name":"month","in":"query","required":true,"schema":{"type":"string","description":"YYYY-MM","title":"Month"},"description":"YYYY-MM"},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/billing/{organization_id}/invoices":{"get":{"tags":["admin-billing"],"summary":"Admin Billing Invoices","operationId":"admin_billing_invoices_api_v1_admin_billing__organization_id__invoices_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_InvoiceRow__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/billing/{organization_id}":{"get":{"tags":["admin-billing"],"summary":"Get Billing State","description":"Return the org's current billing state.\n\n``subscription_status`` is mirrored on demand from Stripe so the\nUI sees the live status (``active``/``past_due``/``canceled``)\nwithout us persisting a field that drifts. If Stripe lookup\nfails we still return the persisted shape with status=null.","operationId":"get_billing_state_api_v1_admin_billing__organization_id__get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_BillingStateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/billing/subscriptions/{organization_id}/credit":{"post":{"tags":["admin-billing"],"summary":"Apply Credit Admin","description":"Apply a Stripe balance credit to an org's customer.\n\nReturns the raw Stripe ``CustomerBalanceTransaction`` dict so the\nadmin UI can display the Stripe txn id + created timestamp.\nLogs to admin_action_log with the Stripe id in the payload\n(ADMIN-007).","operationId":"apply_credit_admin_api_v1_admin_billing_subscriptions__organization_id__credit_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_CreditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/billing/subscriptions/{organization_id}/refund":{"post":{"tags":["admin-billing"],"summary":"Process Refund Admin","description":"Refund a specific Stripe payment intent. Logs to\nadmin_action_log with the Stripe refund id (ADMIN-007).","operationId":"process_refund_admin_api_v1_admin_billing_subscriptions__organization_id__refund_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_RefundRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/billing/subscriptions/{organization_id}/tier":{"patch":{"tags":["admin-billing"],"summary":"Change Tier Admin","description":"Change an org's subscription tier via Stripe + the admin\naudit trail. Wraps the existing\n:func:`org_billing_service.update_subscription_tier` (the\nlegacy ``/admin/billing/update-tier`` endpoint also uses it,\nwithout the admin_action_log entry). Logs ADMIN-007.","operationId":"change_tier_admin_api_v1_admin_billing_subscriptions__organization_id__tier_patch","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_TierChangeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/organizations":{"get":{"tags":["admin-organizations"],"summary":"List Organizations","description":"List all organizations for the admin console.\n\nCross-tenant enumeration → gated by ``require_platform_admin`` (the\nstrict ADMIN-001 gate, matching ``GET /admin/accounts``), NOT the\nbroader ``require_admin`` the per-org ops on this router use. Read-only;\nno audit-log entry (mirrors ``list_accounts``).","operationId":"list_organizations_api_v1_admin_organizations_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by org status (e.g. active)","title":"Status"},"description":"Filter by org status (e.g. active)"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search by org name","title":"Search"},"description":"Search by org name"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Per Page"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_OrganizationListRow__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin-organizations"],"summary":"Create Organization","description":"Create org + owner profile + owner membership in one transaction.\n\nBacks BOTH tabs of the unified creation modal (WLAI-304). The FirstLight\ntab's payload and code path are unchanged; the RutLine tab adds entitlement\ngrants, a contract reference and branding on top of the same atomic write.\n\nGATE (WLAI-301). Moved from ``require_platform_admin`` to\n``require_system_admin`` — founder OR is_system_admin OR is_admin. Nobody who\ncould create an org yesterday loses the ability today (the new dependency\nstill accepts ``is_admin``, and WLAI-301's migration backfilled\n``is_system_admin`` from it), while Juan reaches the modal without a\nsuperuser flag.\n\nDelegates the atomic write to ``AdminOrgService.create_org``, which also\nrecomputes seat projections and creates the Stripe customer. This router\nowns the HTTP-shaped validation: outfitter-tier-only (400), owner-role-only\n(400), duplicate-name (409) and unknown-capability (422). On any failure the\ntransaction is rolled back — partial orgs never persist.","operationId":"create_organization_api_v1_admin_organizations_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_OrganizationCreateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/organizations/profile-dedup":{"get":{"tags":["admin-organizations"],"summary":"Profile Dedup Check","description":"Check whether ``email`` already has a profile before the wizard\ncreates a new one.\n\n``current_org`` is resolved via ``organization_members`` (the canonical\naffiliation source), NOT the dormant ``profiles.organization_id``\npointer — so a real org member resolves correctly. Returns the earliest\norg membership when a profile belongs to several.","operationId":"profile_dedup_check_api_v1_admin_organizations_profile_dedup_get","parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string","description":"Email to check for an existing profile","title":"Email"},"description":"Email to check for an existing profile"},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ProfileDedupResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/organizations/{organization_id}":{"patch":{"tags":["admin-organizations"],"summary":"Patch Organization","operationId":"patch_organization_api_v1_admin_organizations__organization_id__patch","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateOrganizationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_OrganizationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin-organizations"],"summary":"Get Organization Detail","description":"Composed org-detail view: core + seats + members (with last_seen_at)\n+ properties owned by org members + billing. 404 if the org is unknown.\n\nRegistered AFTER ``/profile-dedup`` so the literal route still wins over\nthis ``{organization_id}`` capture.","operationId":"get_organization_detail_api_v1_admin_organizations__organization_id__get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AdminOrgDetailResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/organizations/{organization_id}/members":{"get":{"tags":["admin-organizations"],"summary":"List Members","description":"Return the org's membership rows joined to profile email /\nfull_name. Used by the settings UI to render the team list.","operationId":"list_members_api_v1_admin_organizations__organization_id__members_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__common__ApiResponse_list_MemberResponse____1"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/organizations/{organization_id}/members/{profile_id}/update-role":{"post":{"tags":["admin-organizations"],"summary":"Update Member Role","operationId":"update_member_role_api_v1_admin_organizations__organization_id__members__profile_id__update_role_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMemberRoleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_MemberResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/organizations/{organization_id}/members/{profile_id}":{"delete":{"tags":["admin-organizations"],"summary":"Remove Member","operationId":"remove_member_api_v1_admin_organizations__organization_id__members__profile_id__delete","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_RemoveMemberResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/organizations/{organization_id}/audit-log":{"get":{"tags":["admin-organizations"],"summary":"Get Audit Log","operationId":"get_audit_log_api_v1_admin_organizations__organization_id__audit_log_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AuditLogResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/organizations/{organization_id}/suspend":{"post":{"tags":["admin-organizations"],"summary":"Suspend Organization","description":"ADMIN-003: atomic suspend.\n\nInvalidates every active UserSession for the org, flips\n``status='suspended'``, and pauses the Stripe subscription —\nall in the same transaction (session invalidation + status flip\nare SQL operations that share the AsyncSession; Stripe pause is\nbest-effort and logged).","operationId":"suspend_organization_api_v1_admin_organizations__organization_id__suspend_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_OrganizationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/organizations/{organization_id}/reactivate":{"post":{"tags":["admin-organizations"],"summary":"Reactivate Organization","description":"Reverse :func:`suspend_organization`.\n\nDoes NOT restore the invalidated sessions — members must log\nin again. Treating reactivation as session-restore would expose\nstale credentials; the explicit re-login is the safer default.","operationId":"reactivate_organization_api_v1_admin_organizations__organization_id__reactivate_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_OrganizationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/organizations/{organization_id}/entitlements":{"get":{"tags":["admin-organizations"],"summary":"Get Organization Entitlements","description":"Every catalog capability for one org, as ``granted``/``declined``/``absent``.\n\nReadable for FirstLight orgs too (their rows, if any, are inert — resolution\nis by tier), so an admin can see exactly what is stored.","operationId":"get_organization_entitlements_api_v1_admin_organizations__organization_id__entitlements_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_OrgEntitlementsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-organizations"],"summary":"Update Organization Entitlements","description":"Grant, re-grant or decline capabilities on an existing RutLine org.\n\nPATCH semantics: only listed keys are written. ``enabled: false`` keeps the\nrow as a declined grant (never deleted). ``config: null`` leaves the stored\nconfig alone. 404 unknown org → 409 FirstLight org (after the lookup, per the\nlocked-resource pattern) → 422 unknown key / config owned by branding or by\nthe custom-domain service.","operationId":"update_organization_entitlements_api_v1_admin_organizations__organization_id__entitlements_patch","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgEntitlementsUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_OrgEntitlementsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/organizations/{organization_id}/branding":{"get":{"tags":["admin-organizations"],"summary":"Get Organization Branding","description":"Current branding for one org.\n\nDeliberately NOT entitlement-gated: reading what is stored is how an admin\nfinds out that a downgraded org still has a logo on file. Only the WRITES\nbelow require the capability.","operationId":"get_organization_branding_api_v1_admin_organizations__organization_id__branding_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_BrandingResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/organizations/{organization_id}/brand-color":{"put":{"tags":["admin-organizations"],"summary":"Set Organization Brand Color","description":"Set or clear the brand color under the System Admin gate.\n\nSame write as the ``brand_color`` field on PATCH; exists so the creation\nmodal's System Admin persona can reach it without also holding\n``is_admin`` — see the gate note above. PUT rather than PATCH because the\nbody carries the field's whole value and an absent one means \"clear\".","operationId":"set_organization_brand_color_api_v1_admin_organizations__organization_id__brand_color_put","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandColorRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_BrandingResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/organizations/{organization_id}/logo":{"post":{"tags":["admin-organizations"],"summary":"Upload Organization Logo","description":"Upload an organization logo.\n\nRejects anything that is not a ``.jpg``/``.jpeg``/``.png`` under 5MB, checking\nBOTH the extension and the declared content type — see\n``app.services.logo_file_type`` for why that gate is stricter than the\nplatform's media registry.\n\nTWO SIZE CHECKS, AND WHAT THE FIRST ONE ACTUALLY BUYS. Starlette has already\nparsed and spooled the multipart body by the time this function runs, so the\nparsed part size is known and no check here can avoid the transfer. What the\nprecheck avoids is ``await file.read()`` pulling an oversized body off the\nspool and into memory, and it runs BEFORE the org lookup so an obviously\noversized upload costs neither a DB round trip nor the allocation. The\nauthoritative check is :func:`validate_logo_bytes` against the bytes actually\nreceived — a client that under-reports gains nothing by it.","operationId":"upload_organization_logo_api_v1_admin_organizations__organization_id__logo_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_organization_logo_api_v1_admin_organizations__organization_id__logo_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_BrandingResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin-organizations"],"summary":"Delete Organization Logo","description":"Remove the organization's logo.\n\nIdempotent: removing an absent logo is a 200 with an empty branding payload,\nnot a 404. The caller's intent — \"this org has no logo\" — is satisfied either\nway, and a 404 here would be indistinguishable from an unknown org.","operationId":"delete_organization_logo_api_v1_admin_organizations__organization_id__logo_delete","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_BrandingResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/organizations/{organization_id}/custom-domain":{"get":{"tags":["admin-organizations"],"summary":"Get Organization Custom Domain","operationId":"get_organization_custom_domain_api_v1_admin_organizations__organization_id__custom_domain_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CustomDomainResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin-organizations"],"summary":"Set Organization Custom Domain","operationId":"set_organization_custom_domain_api_v1_admin_organizations__organization_id__custom_domain_put","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDomainSetRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CustomDomainResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin-organizations"],"summary":"Remove Organization Custom Domain","operationId":"remove_organization_custom_domain_api_v1_admin_organizations__organization_id__custom_domain_delete","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CustomDomainResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/organizations/{organization_id}/custom-domain/refresh":{"post":{"tags":["admin-organizations"],"summary":"Refresh Organization Custom Domain","operationId":"refresh_organization_custom_domain_api_v1_admin_organizations__organization_id__custom_domain_refresh_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CustomDomainResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/acl/property":{"post":{"tags":["admin-acl"],"summary":"Create Property Acl","operationId":"create_property_acl_api_v1_admin_acl_property_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePropertyACLRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ACLResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/acl/camera":{"post":{"tags":["admin-acl"],"summary":"Create Camera Acl","operationId":"create_camera_acl_api_v1_admin_acl_camera_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCameraACLRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ACLResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/acl/analysis":{"post":{"tags":["admin-acl"],"summary":"Create Analysis Acl","operationId":"create_analysis_acl_api_v1_admin_acl_analysis_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAnalysisACLRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ACLResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/acl/{acl_id}":{"delete":{"tags":["admin-acl"],"summary":"Delete Acl","operationId":"delete_acl_api_v1_admin_acl__acl_id__delete","parameters":[{"name":"acl_id","in":"path","required":true,"schema":{"type":"string","title":"Acl Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/usage/presence":{"get":{"tags":["admin"],"summary":"Get Presence","description":"Users with an authenticated request inside the window.\n\nReturns the ids as well as the count so the Accounts console can\nlight its \"Currently Active\" column by intersecting this set with\nthe rows on screen — no per-row Redis lookup inside a paginated\nDB query.\n\nRedis-only; takes no DB session.","operationId":"get_presence_api_v1_admin_usage_presence_get","parameters":[{"name":"window_seconds","in":"query","required":false,"schema":{"type":"integer","maximum":86400,"minimum":30,"description":"Rolling window that defines 'online'. Defaults to 5 minutes.","default":300,"title":"Window Seconds"},"description":"Rolling window that defines 'online'. Defaults to 5 minutes."},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PresenceResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/usage/pipeline-activity":{"get":{"tags":["admin"],"summary":"Get Pipeline Activity","description":"Ingest + analysis in-flight state, for the deploy-window call.\n\n``status`` is driven by lifecycle status bounded to the window;\nmonths-old stuck rows are reported on ``stale_*`` instead of\npinning this to \"active\" forever. See\n:mod:`app.services.pipeline_activity_service`.","operationId":"get_pipeline_activity_api_v1_admin_usage_pipeline_activity_get","parameters":[{"name":"window_minutes","in":"query","required":false,"schema":{"type":"integer","maximum":1440,"minimum":1,"description":"Recency bound on the in-flight queries. Defaults to 15 minutes.","default":15,"title":"Window Minutes"},"description":"Recency bound on the in-flight queries. Defaults to 15 minutes."},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PipelineActivityResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/usage/stuck-analyses":{"get":{"tags":["admin"],"summary":"Get Stuck Analyses","description":"Photos stranded in a non-terminal analysis state, each labelled\nwith WHY it is flagged rather than with a generic status.\n\n``meta.available_properties`` lists the properties that currently have\nstuck rows and is the ONLY correct source for the admin property filter::\n\n    meta: { \"available_properties\": [\n        { \"property_id\": str, \"property_name\": str | null, \"stuck_count\": int }\n    ] }\n\nIt is computed from the same predicate as ``rows`` at the SAME\n``stale_minutes``, but ignoring ``property_id`` — so changing the\nthreshold moves the options with the table, and selecting a property\nnever collapses the dropdown to the one option already chosen.\n\nDo NOT source that filter from ``GET /properties``: it is scoped to the\ncaller's ``PropertyMember`` rows (plus orgs they own/manage) with no\nadmin bypass, so for a System Admin it is a strict subset of the platform\nand cannot name most of the properties this endpoint returns. The\nmembership gap on that endpoint is tracked separately as WLAI-209 and is\ndeliberately not addressed here.\n\nThe shape above is not in the OpenAPI schema because ``ApiResponse.meta``\nis an untyped ``dict`` across this codebase; it is pinned by\n``StuckPropertyOption`` and by tests instead.","operationId":"get_stuck_analyses_api_v1_admin_usage_stuck_analyses_get","parameters":[{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Narrow to one property. Omit for platform-wide.","title":"Property Id"},"description":"Narrow to one property. Omit for platform-wide."},{"name":"stale_minutes","in":"query","required":false,"schema":{"type":"integer","maximum":525600,"minimum":5,"description":"How long a row must sit non-terminal to count as stuck. Defaults to 60 minutes — deliberately far longer than pipeline-activity's 15-minute window, which asks whether anything is MOVING.","default":60,"title":"Stale Minutes"},"description":"How long a row must sit non-terminal to count as stuck. Defaults to 60 minutes — deliberately far longer than pipeline-activity's 15-minute window, which asks whether anything is MOVING."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":500,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_StuckAnalysisListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/usage/stuck-analyses/clear":{"post":{"tags":["admin"],"summary":"Post Stuck Analyses Clear","description":"Mark the addressed rows terminal (``failed``).\n\nRows that are no longer non-terminal — completed between the list\nrender and the click — come back under ``skipped_ids`` rather than\nbeing knocked backwards.","operationId":"post_stuck_analyses_clear_api_v1_admin_usage_stuck_analyses_clear_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StuckAnalysisActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ClearResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/usage/stuck-analyses/requeue":{"post":{"tags":["admin"],"summary":"Post Stuck Analyses Requeue","description":"Reset the addressed rows to ``pending`` and re-dispatch analysis.\n\nA row whose R2 object is genuinely gone is refused rather than\ndispatched — re-analyzing an absent object fails again and returns\nthe row straight to this list.","operationId":"post_stuck_analyses_requeue_api_v1_admin_usage_stuck_analyses_requeue_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StuckAnalysisActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_RequeueResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/usage/{org_id}":{"get":{"tags":["admin"],"summary":"List Usage Meters","description":"Return the org's current draft meter plus all closed\nhistory meters in reverse-chronological order.","operationId":"list_usage_meters_api_v1_admin_usage__org_id__get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","description":"Organization id","title":"Org Id"},"description":"Organization id"},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_UsageMeterListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/usage/{org_id}/close":{"post":{"tags":["admin"],"summary":"Close Current Period","description":"Manually close the org's current draft meter. After close,\nsubsequent ``record_*`` calls auto-create a fresh draft on\nthe next access — no admin re-action required.","operationId":"close_current_period_api_v1_admin_usage__org_id__close_post","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_UsageMeterResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/usage/{org_id}/sync-stripe":{"get":{"tags":["admin"],"summary":"Preview Stripe Sync","description":"Return the payload the test-mode Stripe sync would POST\nif it ran right now. Read-only; never calls Stripe.","operationId":"preview_stripe_sync_api_v1_admin_usage__org_id__sync_stripe_get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_StripeUsageRecordPreview_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/api-keys":{"post":{"tags":["admin","enterprise"],"summary":"Create Api Key","operationId":"create_api_key_api_v1_admin_api_keys_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIKeyCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_APIKeyCreatedResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin","enterprise"],"summary":"List Api Keys","operationId":"list_api_keys_api_v1_admin_api_keys_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_APIKeyListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/api-keys/{api_key_id}":{"delete":{"tags":["admin","enterprise"],"summary":"Revoke Api Key","operationId":"revoke_api_key_api_v1_admin_api_keys__api_key_id__delete","parameters":[{"name":"api_key_id","in":"path","required":true,"schema":{"type":"string","description":"API key id","title":"Api Key Id"},"description":"API key id"},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/health/metrics":{"get":{"tags":["admin-health"],"summary":"Get Health Metrics","description":"Return the rich admin-dashboard metrics payload.\n\nCached 30 s server-side to match the dashboard's poll cadence —\nrepeated calls inside the window return the same snapshot\nwithout re-hitting CloudWatch / Sentry / internal DB.","operationId":"get_health_metrics_api_v1_admin_health_metrics_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_HealthMetricsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/health/thresholds":{"get":{"tags":["admin-health"],"summary":"List Thresholds","description":"Return every alert threshold, ordered by metric_key. Seeded\nrows land via migration ``o8j0l2e4g6h0``.","operationId":"list_thresholds_api_v1_admin_health_thresholds_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_AlertThresholdResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/health/thresholds/{metric_key}":{"patch":{"tags":["admin-health"],"summary":"Update Threshold","description":"Patch a threshold and log the change to admin_action_log.\n\n404 when ``metric_key`` doesn't match a seeded row. The admin\nUI restricts the metric_key list to the seeded set; ad-hoc keys\naren't supported (no INSERT path beyond the migration seed).","operationId":"update_threshold_api_v1_admin_health_thresholds__metric_key__patch","parameters":[{"name":"metric_key","in":"path","required":true,"schema":{"type":"string","title":"Metric Key"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertThresholdUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AlertThresholdResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/email/diagnostics":{"get":{"tags":["admin-email"],"summary":"Get Email Diagnostics","description":"Report outbound-email provider state without exposing secrets.\n\n``provider_configured=False`` is the single most useful signal here: it\nmeans every send is being skipped before the provider is ever called, and\nno amount of retrying will help until the key is set.\n\nScope note: this covers BACKEND-originated application mail only. Supabase\nGoTrue auth mail (password reset, confirmation) is sent by GoTrue over its\nown SMTP configuration and is NOT observable from this process — a healthy\nreading here says nothing about auth mail, and vice versa.","operationId":"get_email_diagnostics_api_v1_admin_email_diagnostics_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_EmailDiagnosticsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/alerts/admins":{"get":{"tags":["admin-alerts"],"summary":"List Alert Recipient Admins","description":"Platform-admin profiles (``is_admin=True``) for the Alert Routing\npage's recipient picker. Ordered by email.","operationId":"list_alert_recipient_admins_api_v1_admin_alerts_admins_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_AdminRecipientRow__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/alerts/thresholds":{"get":{"tags":["admin-alerts"],"summary":"List Alert Thresholds","description":"Same payload as ``GET /admin/health/thresholds``. Lovable spec\n§4.2 surfaces both paths because the admin UI navigates from\neither the Health page or the Alerts page.","operationId":"list_alert_thresholds_api_v1_admin_alerts_thresholds_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_AlertThresholdResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-alerts"],"summary":"Update Alert Thresholds Batch","description":"Update one or more thresholds in a single call. The dashboard's\n\"Save All Threshold Changes\" button. Each per-key update logs to\nadmin_action_log independently — a partial-failure batch leaves\nearlier successes committed.","operationId":"update_alert_thresholds_batch_api_v1_admin_alerts_thresholds_patch","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_BatchThresholdUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_AlertThresholdResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/alerts/channels":{"get":{"tags":["admin-alerts"],"summary":"List Alert Channels","description":"All global alert channel destinations (oncall/teams/email/sms).\nLazy-seeds the four defaults on first read.","operationId":"list_alert_channels_api_v1_admin_alerts_channels_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_AlertChannelConfigResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/alerts/channels/{channel_type}":{"patch":{"tags":["admin-alerts"],"summary":"Update Alert Channel","description":"Update a channel's destination + enabled (+ optional label). 404 if\n``channel_type`` isn't one of oncall/teams/email/sms.","operationId":"update_alert_channel_api_v1_admin_alerts_channels__channel_type__patch","parameters":[{"name":"channel_type","in":"path","required":true,"schema":{"type":"string","title":"Channel Type"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertChannelConfigUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AlertChannelConfigResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/alerts/preferences/me":{"get":{"tags":["admin-alerts"],"summary":"Get My Preferences","description":"Current admin's routing preferences. Lazy-creates a defaults\nrow on first read (same pattern as org_qr_settings).","operationId":"get_my_preferences_api_v1_admin_alerts_preferences_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AlertPreferenceResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-alerts"],"summary":"Update My Preferences","description":"Patch the current admin's preferences. Unknown category keys\nare dropped silently by the service-layer sanitizer (forward-\ncompat with categories landed server-side).","operationId":"update_my_preferences_api_v1_admin_alerts_preferences_me_patch","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertPreferenceUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AlertPreferenceResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/dlq":{"get":{"tags":["admin-dlq"],"summary":"List Dlq","description":"Return DLQ entries + total count. Uses the legacy\n:func:`get_dead_letter_entries` + :func:`get_dead_letter_count`\nso the listing payload matches what\n``/admin/dead-letter-queue`` already returns.","operationId":"list_dlq_api_v1_admin_dlq_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/dlq/{task_id}/retry":{"post":{"tags":["admin-dlq"],"summary":"Retry Dlq Entry","description":"Replay a single DLQ entry. Logs to admin_action_log.","operationId":"retry_dlq_entry_api_v1_admin_dlq__task_id__retry_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/dlq/{task_id}/discard":{"post":{"tags":["admin-dlq"],"summary":"Discard Dlq Entry","description":"Drop a single DLQ entry without re-running it. Logs to\nadmin_action_log.","operationId":"discard_dlq_entry_api_v1_admin_dlq__task_id__discard_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/dlq/retry-all":{"post":{"tags":["admin-dlq"],"summary":"Retry All Dlq","description":"Replay every DLQ entry. Returns counts per outcome. Logs to\nadmin_action_log once with the aggregate summary.","operationId":"retry_all_dlq_api_v1_admin_dlq_retry_all_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/dlq/clear":{"post":{"tags":["admin-dlq"],"summary":"Clear Dlq","description":"Destructive — wipe the entire DLQ.\n\nADMIN-006: write the clear-intent log row FIRST. If the log\nwrite fails (logger returns None), abort with 503 — the wipe is\nnever executed without an audit trail. The pre-flush guarantees\nthe log row commits before the Redis DELETE runs.","operationId":"clear_dlq_api_v1_admin_dlq_clear_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/support/tickets":{"get":{"tags":["admin-support"],"summary":"List Tickets","description":"List all tickets across the platform. Filters are AND-composed.\n\n``organization_id`` joins through ``profiles.organization_id`` so\nan operator triaging incidents for one customer can scope the\nqueue. Legacy ``/support/admin/tickets`` is unchanged.\n\nWLAI-404 follow-up: ``sort_by`` (``last_activity`` | ``priority``) and\n``order`` (``asc`` | ``desc``) choose the order; the default (last activity,\nnewest first) is the previous fixed order. Every ordering ends on ``id``\n(see :func:`ticket_list_order_by`) so offset pagination is stable on ties.\nAny other value is a 422.","operationId":"list_tickets_api_v1_admin_support_tickets_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"priority","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter to tickets opened by members of this org","title":"Organization Id"},"description":"Filter to tickets opened by members of this org"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"sort_by","in":"query","required":false,"schema":{"enum":["last_activity","priority"],"type":"string","default":"last_activity","title":"Sort By"}},{"name":"order","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Order"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse__AdminTicketList_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/support/tickets/{ticket_id}":{"get":{"tags":["admin-support"],"summary":"Get Ticket","description":"Full ticket detail with the message thread eager-loaded.","operationId":"get_ticket_api_v1_admin_support_tickets__ticket_id__get","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","title":"Ticket Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse__AdminTicketDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-support"],"summary":"Admin Update Ticket","description":"Update status / priority / assignment.\n\nStatus transitions to ``resolved`` or ``closed`` stamp the\ncorresponding timestamp columns. The admin_action_log payload\ncarries before/after values per ADMIN-* compliance pattern.","operationId":"admin_update_ticket_api_v1_admin_support_tickets__ticket_id__patch","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","title":"Ticket Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_AdminUpdateTicket"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse__AdminTicket_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/support/tickets/{ticket_id}/reply":{"post":{"tags":["admin-support"],"summary":"Admin Reply","description":"Post a message as the admin. Marks the row with\n``is_admin_reply=True`` so the user UI renders it distinctly from\nuser messages. Stamps ``first_response_at`` on the ticket if this\nis the first admin response, and bumps ``last_activity_at``.","operationId":"admin_reply_api_v1_admin_support_tickets__ticket_id__reply_post","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","title":"Ticket Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_AdminReplyRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse__AdminTicketMessage_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/support/tickets/{ticket_id}/reset-password":{"post":{"tags":["admin-support"],"summary":"Reset Password From Ticket","description":"Admin-initiated password reset for the ticket owner.\n\nResolves ticket → profile → Supabase auth user id, calls\n:func:`admin_password_service.update_user_password` with a fresh\ngenerated password + ``mark_must_change=True``, and arms the DB gate\n(``profiles.must_change_password``) so /me forces a change on next login.\nThe generated password IS returned in the response so the operator can\nrelay it out-of-band (the email/reset-link path is not yet delivering).\n\nLogs to admin_action_log with ``target_type='account'`` and\n``target_id=ticket.profile_id`` so the audit trail is tied to\nthe account being reset, not just the ticket.","operationId":"reset_password_from_ticket_api_v1_admin_support_tickets__ticket_id__reset_password_post","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","title":"Ticket Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse__ResetPasswordResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/support/tickets/{ticket_id}/retry-job":{"post":{"tags":["admin-support"],"summary":"Retry Job From Ticket","description":"Replay a failed background job referenced by the ticket.\n\nConflict 4 ruling: the link between Ticket and DLQ entry is\nloose — the operator pulls ``task_id`` from the ticket body /\nrelated notes and POSTs it here. No schema column on Ticket\nenforces the relationship; the admin_action_log payload pins\nthe two ids together for the audit trail.\n\nReturns whether the replay succeeded. A False ``replayed``\ntypically means the task_id isn't in the DLQ (already cleared\nor never failed). The operator can re-run the original action\nmanually if needed.","operationId":"retry_job_from_ticket_api_v1_admin_support_tickets__ticket_id__retry_job_post","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","title":"Ticket Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_RetryJobRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse__RetryJobResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/security/audit-log":{"get":{"tags":["admin-security"],"summary":"List Audit Log","description":"Platform-wide audit log query.\n\nDistinct from the existing per-org endpoint at\n``/admin/organizations/{id}/audit-log`` — that one is scoped by\n``organization_id`` and used by the per-org settings page. This\none queries every row across the platform with admin-level\nfilters.\n\nFilters are AND-composed. ``since`` / ``until`` are timezone-\naware datetimes; naive values are treated as UTC.","operationId":"list_audit_log_api_v1_admin_security_audit_log_get","parameters":[{"name":"action","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Exact action match","title":"Action"},"description":"Exact action match"},{"name":"profile_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter to one actor","title":"Profile Id"},"description":"Filter to one actor"},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter to one org","title":"Organization Id"},"description":"Filter to one org"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"success / failure (column name is `status`)","title":"Status"},"description":"success / failure (column name is `status`)"},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Inclusive lower bound on created_at (UTC)","title":"Since"},"description":"Inclusive lower bound on created_at (UTC)"},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Inclusive upper bound on created_at (UTC)","title":"Until"},"description":"Inclusive upper bound on created_at (UTC)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse__AuditLogResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/security/ip-log":{"get":{"tags":["admin-security"],"summary":"List Ip Log","description":"Aggregate IP-hash activity across audit_logs + user_sessions.\n\nConflict 6 ruling — no dedicated ip_log table. The aggregation\nruns at query time:\n\n  * audit_logs: distinct ip_hash → first_seen (min created_at),\n    last_seen (max created_at), event_count, sample profile_id.\n  * user_sessions: distinct ip_hash → first_seen (min created_at),\n    last_seen (max last_active_at), session_count, sample profile_id.\n\nRows are merged on ``ip_hash`` with ``source`` ∈\n{\"audit_log\", \"user_session\", \"both\"}. Sorted by ``last_seen``\ndescending so the operator sees recent activity first.\n\nPerformance note: full-table scans on both sides. Acceptable at\nBETA scale (thousands of rows); revisit if volume grows past\n~1M. A materialized rollup would be the natural follow-up.","operationId":"list_ip_log_api_v1_admin_security_ip_log_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Restrict aggregation to events on/after this UTC ts","title":"Since"},"description":"Restrict aggregation to events on/after this UTC ts"},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse__IpLogResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/security/sessions":{"get":{"tags":["admin-security"],"summary":"List Sessions","description":"List UserSession rows with filters.\n\n``revoked=True`` returns sessions with ``revoked_at IS NOT NULL``;\n``revoked=False`` returns active sessions only; omitting the\nparam returns both (the admin UI's default view).","operationId":"list_sessions_api_v1_admin_security_sessions_get","parameters":[{"name":"profile_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Id"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"}},{"name":"revoked","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"True → only revoked sessions; False → only active; None (default) → both","title":"Revoked"},"description":"True → only revoked sessions; False → only active; None (default) → both"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse__SessionListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/security/sessions/{session_id}":{"delete":{"tags":["admin-security"],"summary":"Revoke Session","description":"Soft-revoke a UserSession by setting ``revoked_at = now()``.\n\nNEVER hard-deletes — the row stays for the audit trail. A\nre-revoke is idempotent (returns ``already_revoked=true`` and\nleaves the original ``revoked_at`` timestamp untouched).\n\nEvery revocation logs to admin_action_log with\n``target_type='user_session'``, ``target_id=session_id``,\n``target_name=<profile_id>`` (denormalized for fast UI rollup\nwithout a join).","operationId":"revoke_session_api_v1_admin_security_sessions__session_id__delete","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse__RevokeSessionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/roles/system-admin":{"post":{"tags":["admin-roles"],"summary":"Grant System Admin","description":"Grant ``profiles.is_admin`` to one account. Founder-only (CC-08).\n\nGrants EXACTLY System Admin and nothing else. It does not add the account\nto ``FOUNDER_EMAILS``, so the target does not become ``is_founder``, does\nnot render the FOUNDING MEMBER badge, does not gain founder immunity from\nsuspension, and does not gain the three product-tier bypasses\n(``require_subscription`` / ``require_outfitter_tier`` /\n``require_active_subscription``). That is CC-01 Option 1 as ruled: System\nAdmin parity, no more.\n\nIdempotent — granting to an account that already holds it returns\n``changed: false`` and still writes an audit row.","operationId":"grant_system_admin_api_v1_admin_roles_system_admin_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemAdminGrantRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_SystemAdminGrantResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/roles/system-admin/{profile_id}":{"delete":{"tags":["admin-roles"],"summary":"Revoke System Admin","description":"Revoke ``profiles.is_admin`` from one account. Founder-only (CC-08).\n\nShipped alongside the grant deliberately. A grant path with no revoke path\nwould recreate on the removal side exactly the problem CC-03 closed on the\ngrant side — the only way to un-admin someone would be the direct\nproduction UPDATE this endpoint exists to replace.\n\nFOUNDERS CANNOT BE REVOKED, and the reason is mechanical rather than\nceremonial. ``AuthService.get_or_create_profile`` re-asserts\n``is_admin = True`` on every founder login (``auth_service.py``: ``if\nis_founder and not profile.is_admin``). A revoke against a founder would\ntherefore appear to succeed, persist, and then silently revert the next\ntime they signed in — a write that reports success and is undone by an\nunrelated code path. Refusing loudly is the never-silently-discard answer;\nto actually remove a founder's access, remove the address from\n``FOUNDER_EMAILS``, which is a security-contract change under CLAUDE.md\n§4.5.\n\nON LAST-ADMIN PROTECTION (CC-05, still open at time of writing): no\nexplicit floor is enforced here because the founder guard above already\nsupplies one structurally — the four founder accounts always carry\n``is_admin`` and cannot be revoked through this endpoint, so the admin set\ncan never be emptied. If CC-05 rules that a numeric floor is wanted on top\nof that, it belongs here.","operationId":"revoke_system_admin_api_v1_admin_roles_system_admin__profile_id__delete","parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemAdminRevokeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_SystemAdminGrantResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/dsar/{dsar_id}/fulfill":{"post":{"tags":["admin-dsar"],"summary":"Fulfill Dsar","description":"Automated fulfillment, gated by ``dsar_auto_export`` flag.\n\nBranches by request_type per the matrix in the module docstring.\nReturns 200/201 on automated success, 202 for the always-manual\ndelete path (request accepted but execution deferred to operator),\nand 409 for the manual-review-required branches.\n\nEvery branch writes an admin_action_log entry — even the manual-\nreview cases leave a paper trail so the operator picks up where\nautomation left off.","operationId":"fulfill_dsar_api_v1_admin_dsar__dsar_id__fulfill_post","parameters":[{"name":"dsar_id","in":"path","required":true,"schema":{"type":"string","description":"DSAR row UUID","title":"Dsar Id"},"description":"DSAR row UUID"},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse__DsarFulfillResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts":{"get":{"tags":["admin-accounts"],"summary":"List Accounts","description":"List accounts with the same shape as legacy ``GET /admin/users``.\n\nRead-only — no admin_action_log entry (logging every list call\nwould flood the table without aiding compliance).","operationId":"list_accounts_api_v1_admin_accounts_get","parameters":[{"name":"billing_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"monthly|season_pass|annual|free","title":"Billing Type"},"description":"monthly|season_pass|annual|free"},{"name":"tier","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"free|pro|elite|intelligence_plus","title":"Tier"},"description":"free|pro|elite|intelligence_plus"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"active|canceled|past_due|trialing","title":"Status"},"description":"active|canceled|past_due|trialing"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search by email or name","title":"Search"},"description":"Search by email or name"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Per Page"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_AdminUserRow__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin-accounts"],"summary":"Create Account","description":"Provision an Outfitter or Individual account.\n\nWraps :func:`admin_account_service.create_account` per Conflict 2.\nThe service handles the actual row work (Profile + Organization +\nOrganizationMember owner + default Property + PropertyMember\nowner). This handler only translates HTTP errors and logs the\ncreation to admin_action_log.\n\nADMIN-006 pre-write: the admin_action_log row is appended BEFORE\nthe commit. If log-write fails, the action still proceeds (the\nlogger swallows errors per Phase 3 contract) — the\nrollback-on-log-failure rule applies only to *destructive* ops.\nCreation is restorable via subsequent delete; suspension /\npassword-reset are not.","operationId":"create_account_api_v1_admin_accounts_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAccountCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AdminAccountCreateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}":{"get":{"tags":["admin-accounts"],"summary":"Get Account","description":"Single-account dossier with org snapshot + session counts.\n\nRead-only — no admin_action_log entry.","operationId":"get_account_api_v1_admin_accounts__account_id__get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AdminAccountDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/reset-password":{"post":{"tags":["admin-accounts"],"summary":"Reset Account Password","description":"Reset an account password via the Supabase Admin API.\n\nSame wire shape as the legacy ``POST /admin/users/{id}/reset-password``\nin admin.py — the divergence here is the strict\n``require_platform_admin`` gate + the canonical\n``account_reset_password`` audit action label.\n\nADMIN-006: the admin_action_log row is written BEFORE the\nSupabase call so a destructive (or visibly observable) action\ncannot succeed silently. If log-write fails, abort with 503 —\nthe operator can retry once the log path recovers. Best-effort\nrule (Phase 3 contract) covers transient I/O failures, not\na totally-broken admin_action_log path.","operationId":"reset_account_password_api_v1_admin_accounts__account_id__reset_password_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AdminPasswordWriteRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AdminPasswordWriteResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/provision-auth-user":{"post":{"tags":["admin-accounts"],"summary":"Provision Auth User","description":"Link, or create, the Supabase auth user for an unlinked profile.\n\n* Already linked (``resolve_auth_user_id`` is not None) → 409\n  ``auth_user_already_linked``. Use Reset Password instead.\n* An auth user exists for the email → link it only if its email is\n  confirmed AND no profile already logs in as it\n  (409 ``auth_user_unconfirmed`` / ``auth_user_already_claimed``).\n  Its password is untouched. Outcome ``linked_existing``.\n* None exists → create a confirmed one with a generated temp password,\n  arm ``must_change_password``, link it, and return the password once.\n  Outcome ``created_new``.\n\nThe link is a conditional UPDATE (``WHERE supabase_user_id IS NULL``);\nzero rows is a 409, never a success. The audit row (actor, profile, auth\nuid, outcome, reason) is written in the same transaction as the link; if\nit cannot be written the request is refused (ADMIN-006).","operationId":"provision_auth_user_api_v1_admin_accounts__account_id__provision_auth_user_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAuthProvisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AdminAuthProvisionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/suspend":{"post":{"tags":["admin-accounts"],"summary":"Suspend Account","description":"Suspend an account by revoking every live UserSession.\n\nConflict 3 ruling — Option B (BETA): session-revocation-only.\nThere is no ``Profile.suspended_at`` column. A re-login can\nre-establish a session; this is acceptable for BETA where every\naccount is FREE-tier and the surface is small.\n\nTODO (post-BETA hardening): add ``Profile.suspended_at`` +\ngate session establishment (or the auth callback that lands a\nUserSession) on the flag so suspensions stick across re-login.\nTracked separately; do NOT silently add the column without\nrevisiting Conflict 3.\n\nFounders cannot be suspended (CLAUDE.md §4.5 — superadmin\nidentities are immune to admin UI takedowns).\n\nADMIN-006: the admin_action_log row is written BEFORE the\nrevocation. If log-write fails, the suspension does NOT proceed.","operationId":"suspend_account_api_v1_admin_accounts__account_id__suspend_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AdminAccountSuspendResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/class":{"post":{"tags":["admin-accounts"],"summary":"Change Account Class","description":"Atomically set an account's membership class and/or subscription tier and\nappend the immutable ``MembershipClassChange`` audit row (BETA Tier Spec §7/§10).\n\nSecurity surface (§10):\n\n* ``require_platform_admin`` (strict ADMIN-001 gate).\n* A nonexistent account → **404** (not 403): the endpoint does not confirm to a\n  non-target which account ids exist.\n* Body is ``extra=\"forbid\"`` (no mass-assignment); the actor and the timestamp\n  come from the session / DB clock, never the request body (§10.4).\n* **20/hr** rate limit, keyed to the admin.\n* **Founders are refused as invalid targets** — their entitlement resolves\n  *above* the tier (CLAUDE.md §4.5), so a write would 200-and-change-nothing\n  (the invisible-successful-write trap). Applies even to a founder self-change.\n* A **destructive reduction** — clearing a Homestead/Charter overlay, or lowering\n  the tier down the account's own registry ladder — requires the caller to echo\n  the **target account's email** in ``confirmation`` (Finding 2): a named token\n  that names the specific account, so an admin can't fat-finger the wrong one\n  out of a membership. Both destructive paths use the same gate.\n* Self-change by a non-founder admin is allowed (audit ``actor == profile``).\n\nTier destinations validate against ``assignable_tiers_for`` (the registry),\nnever a hardcoded list. The whole change rides one transaction: class + tier +\naudit commit together or roll back together.","operationId":"change_account_class_api_v1_admin_accounts__account_id__class_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminClassChangeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AdminClassChangeResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{account_id}/class-history":{"get":{"tags":["admin-accounts"],"summary":"Get Account Class History","description":"Append-only membership-class history for an account (BETA Tier Spec §8.1),\nnewest first.\n\nRead-only — no ``admin_action_log`` entry (matches the list endpoint; logging\nevery read would flood the table without aiding compliance). A nonexistent\naccount → **404**; an account that exists but has never had a class change →\n**200** with an empty list — the hand-set cohort fixture is exactly this case,\nand an empty history is expected, not an error.\n\nEach row carries the actor's email alongside the id so the console renders a\nhuman label without an N+1 lookup; both are null only when a DSAR deletion\nsevered the actor (the transition record itself survives).","operationId":"get_account_class_history_api_v1_admin_accounts__account_id__class_history_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Per Page"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_AdminClassHistoryRow__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/unified-accounts":{"get":{"tags":["admin-unified-accounts"],"summary":"List Accounts Unified","description":"The sortable unified accounts list.\n\nSORTING IS SERVER-SIDE (ruling 1). The list is paginated, so a client-side\nsort would order only the 50 rows already fetched — correct-looking on a\ndemo dataset and wrong on real data the moment a second page exists. Sorting\nand pagination are therefore applied to one combined ``UNION ALL``, and\n``entitlement_count`` sorts numerically because it is an INTEGER in that\nunion rather than numeric-looking text.\n\nCross-tenant enumeration, so it is gated — ``require_system_admin``\n(WLAI-301), the same gate backing the WLAI-304 creation modal this list sits\nin front of. Read-only; no admin_action_log entry, matching ``list_accounts``\nand ``list_organizations`` (logging every list call floods the table without\naiding compliance).\n\nAn unknown ``sort_by`` is a 400 rather than a silent fall-back to the\ndefault: falling back would render the clicked column header as sorted while\nthe rows underneath were ordered by something else.","operationId":"list_accounts_unified_api_v1_admin_unified_accounts_get","parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Match on name or email","title":"Search"},"description":"Match on name or email"},{"name":"entity_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"account|organization","title":"Entity Type"},"description":"account|organization"},{"name":"product_line","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"firstlight|rutline","title":"Product Line"},"description":"firstlight|rutline"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Row status (subscription or org status)","title":"Status"},"description":"Row status (subscription or org status)"},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","description":"One of: name, entity_type, product_line, plan, entitlement_count, status, email, created_at","default":"created_at","title":"Sort By"},"description":"One of: name, entity_type, product_line, plan, entitlement_count, status, email, created_at"},{"name":"sort_dir","in":"query","required":false,"schema":{"type":"string","description":"asc|desc","default":"desc","title":"Sort Dir"},"description":"asc|desc"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Per Page"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_UnifiedAccountRow__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/ai/metrics":{"get":{"tags":["admin-ai"],"summary":"Get Ai Metrics","description":"Aggregate AI-domain metrics for the System Admin dashboard.\n\nFour blocks fetched in parallel: accuracy (from\n``benchmark_runs``), correction memory queue (from\n``species_correction_memory`` + ``analyses.corrected_at``),\nspecies detection breakdown (from ``analyses`` 7-day window with\n``corrected_species`` overriding ``primary_species``), and\ncurrent model version (from the latest stamped ``analyses.model_version``).\n\nEach block fails soft: a degraded sub-query returns its empty\nshape rather than 500-ing the whole endpoint.","operationId":"get_ai_metrics_api_v1_admin_ai_metrics_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AdminAiMetricsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/ai/summary":{"get":{"tags":["admin-ai"],"summary":"Admin Ai Summary","operationId":"admin_ai_summary_api_v1_admin_ai_summary_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AISummaryResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/ai/failed-analyses":{"get":{"tags":["admin-ai"],"summary":"Admin Failed Analyses","description":"Platform-wide failed photos (R1). Joins org/property context for the\nadmin queue. Fail-soft: returns an empty page rather than 500ing.","operationId":"admin_failed_analyses_api_v1_admin_ai_failed_analyses_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_FailedAnalysisListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/ai/failed-analyses/{photo_id}/retry":{"post":{"tags":["admin-ai"],"summary":"Admin Retry Analysis","description":"Re-enqueue one failed photo via the existing reanalyze_photo task\n(R2 — no new pipeline logic).","operationId":"admin_retry_analysis_api_v1_admin_ai_failed_analyses__photo_id__retry_post","parameters":[{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","title":"Photo Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_RetryResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/ai/failed-analyses/retry-all":{"post":{"tags":["admin-ai"],"summary":"Admin Retry All Analyses","description":"Bulk re-enqueue all failed photos via reanalyze_photo (R2).","operationId":"admin_retry_all_analyses_api_v1_admin_ai_failed_analyses_retry_all_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__int__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/ai/species-breakdown":{"get":{"tags":["admin-ai"],"summary":"Admin Species Breakdown","description":"Top-10 species by count over 30 days (R6). Fail-soft to empty.","operationId":"admin_species_breakdown_api_v1_admin_ai_species_breakdown_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_SpeciesBreakdownRow__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/ai/pipeline":{"get":{"tags":["admin-ai"],"summary":"Admin Ai Pipeline","description":"7-stage pipeline health derived from real sources (R3/R4).","operationId":"admin_ai_pipeline_api_v1_admin_ai_pipeline_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PipelineResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/ai/model-status":{"get":{"tags":["admin-ai"],"summary":"Admin Ai Model Status","description":"Current AI model lifecycle status (EOL + recommended successor).\n\nReads the configured ``ai_model`` and the model registry. ``warning_level``\ndrives the admin banner: ok | warn (<=30d to EOL) | critical (<=7d).","operationId":"admin_ai_model_status_api_v1_admin_ai_model_status_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ModelStatusResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/ai/validate-model":{"post":{"tags":["admin-ai"],"summary":"Admin Ai Validate Model","description":"Benchmark a candidate model against human-corrected ground truth and\npersist the run. Does NOT promote — validation only (Part C).","operationId":"admin_ai_validate_model_api_v1_admin_ai_validate_model_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateModelRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ValidateModelResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/ai/promote-model":{"post":{"tags":["admin-ai"],"summary":"Admin Ai Promote Model","description":"Trigger CI promotion of a candidate model. Requires a completed,\npassing benchmark run on record (the gate); the GitHub Actions workflow\ndoes the secret edit + redeploy. Never touches AWS directly (Part C).","operationId":"admin_ai_promote_model_api_v1_admin_ai_promote_model_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromoteModelRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PromoteModelResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/ai/corrections":{"get":{"tags":["admin-ai"],"summary":"Admin List Corrections","description":"Every correction, with the context needed to judge it.\n\nDELIBERATELY NOT FAIL-SOFT, unlike its neighbours in this router. The other\nadmin reads degrade to an empty shape because a blank metrics card is better\nthan a 500. A moderation queue is the opposite: an empty list reads as\n\"nothing to review\" and an admin closes the tab. Silently showing zero\ncorrections is the exact failure class WLAI-146 exists to remove, so this\nraises instead.","operationId":"admin_list_corrections_api_v1_admin_ai_corrections_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"enum":["unreviewed","approved","rejected","all"],"type":"string","description":"'unreviewed' means no review row exists.","default":"unreviewed","title":"Status"},"description":"'unreviewed' means no review row exists."},{"name":"classification","in":"query","required":false,"schema":{"anyOf":[{"enum":["model_miss","vocabulary","user_error","test_data"],"type":"string"},{"type":"null"}],"description":"The REVIEWER'S tag on a decision. Distinct from vocabulary_only: this is a human judgement recorded on a review, that one is computed from the taxonomy. A correction can be vocabulary_only=true with no review at all, or be tagged 'vocabulary' by a reviewer who disagreed with the resolver.","title":"Classification"},"description":"The REVIEWER'S tag on a decision. Distinct from vocabulary_only: this is a human judgement recorded on a review, that one is computed from the taxonomy. A correction can be vocabulary_only=true with no review at all, or be tagged 'vocabulary' by a reviewer who disagreed with the resolver."},{"name":"vocabulary_only","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter on the COMPUTED classification: both sides of the correction resolve to the same taxon. true = only those, false = everything else (including all non-species corrections), omitted = no filter. Applied before pagination, so meta.total matches what can be paged.","title":"Vocabulary Only"},"description":"Filter on the COMPUTED classification: both sides of the correction resolve to the same taxon. true = only those, false = everything else (including all non-species corrections), omitted = no filter. Applied before pagination, so meta.total matches what can be paged."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CorrectionListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/ai/corrections/review-batch":{"post":{"tags":["admin-ai"],"summary":"Admin Review Corrections Batch","description":"Review many corrections at once — the first real use is test-data triage.\n\nUnknown ids are REPORTED in ``not_found``, not silently skipped, and the ids\nthat do exist are still applied. Failing the whole batch because one id went\nstale would make bulk triage unusable; dropping it quietly would make the\nresponse a lie about what happened.","operationId":"admin_review_corrections_batch_api_v1_admin_ai_corrections_review_batch_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectionReviewBatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CorrectionReviewBatchResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/ai/corrections/{correction_event_id}/review":{"post":{"tags":["admin-ai"],"summary":"Admin Review Correction","description":"Record one decision. Re-reviewing replaces the previous one.","operationId":"admin_review_correction_api_v1_admin_ai_corrections__correction_event_id__review_post","parameters":[{"name":"correction_event_id","in":"path","required":true,"schema":{"type":"string","title":"Correction Event Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectionReviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CorrectionReviewResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/benchmarks":{"get":{"tags":["admin-benchmarks"],"summary":"Get Benchmarks","description":"Aggregate windowed benchmarks for the System Admin dashboard.\n\nRead-only — no admin_action_log entry (logging dashboard reads\nwould flood the table without compliance benefit). The ``sources``\nlist on the response indicates which providers returned live data\nso the frontend can render empty-state cards for stubbed metrics\n(BETA: ``photo_processing.median_seconds``, ``photo_processing\n.p95_seconds``, and all ``api_latency`` fields are CloudWatch\nstubs returning ``None``).","operationId":"get_benchmarks_api_v1_admin_benchmarks_get","parameters":[{"name":"time_range","in":"query","required":false,"schema":{"enum":["24h","7d","30d"],"type":"string","description":"Aggregation window — 24h, 7d, or 30d (default 7d).","default":"7d","title":"Time Range"},"description":"Aggregation window — 24h, 7d, or 30d (default 7d)."},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AdminBenchmarksResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/benchmarks/summary":{"get":{"tags":["admin-benchmarks"],"summary":"Admin Benchmarks Summary","operationId":"admin_benchmarks_summary_api_v1_admin_benchmarks_summary_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_BenchmarkSummaryResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/dev/migrations":{"get":{"tags":["admin-dev"],"summary":"Get Migrations","description":"Alembic chain + per-revision applied status.\n\nRead-only — no admin_action_log entry. The ``is_in_sync`` boolean\non the response is the headline for the drift-detection card.","operationId":"get_migrations_api_v1_admin_dev_migrations_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_MigrationsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/dev/api-health":{"get":{"tags":["admin-dev"],"summary":"Get Api Health","description":"Registered-route inventory rolled up by tag.\n\nRead-only — no admin_action_log entry. Pulls from\n``request.app.routes``; sub-second, no fan-out.","operationId":"get_api_health_api_v1_admin_dev_api_health_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ApiHealthResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/dev/caches":{"get":{"tags":["admin-dev"],"summary":"Get Caches","description":"Per-type cache size estimate. Read-only — no audit log.","operationId":"get_caches_api_v1_admin_dev_caches_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CachesResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/dev/caches/{cache_type}/clear":{"post":{"tags":["admin-dev"],"summary":"Clear Cache","description":"Invalidate every entry in one cache type.\n\nADMIN-006: the admin_action_log row is written BEFORE the\ninvalidation. On log failure → 503 (refuse to proceed). DLQ and\nintelligence types are rejected at the service layer → 400.","operationId":"clear_cache_api_v1_admin_dev_caches__cache_type__clear_post","parameters":[{"name":"cache_type","in":"path","required":true,"schema":{"enum":["analytics","feature_flags","dlq","health_metrics","intelligence"],"type":"string","title":"Cache Type"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CacheClearResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/dev/webhook-test":{"post":{"tags":["admin-dev"],"summary":"Webhook Test","description":"Fire a sample Teams webhook payload.\n\nADMIN-006: audit-log row written BEFORE the upstream call. The\nupstream itself is allowed to fail (status_code=0 in the response\nbody) — that's a diagnostic, not an error from this endpoint's\nperspective.","operationId":"webhook_test_api_v1_admin_dev_webhook_test_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookTestRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_WebhookTestResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/map-assets":{"get":{"tags":["property-assets"],"summary":"List Map Assets","description":"Unified view across cameras + stands + generic assets.","operationId":"list_map_assets_api_v1_properties__property_id__map_assets_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"asset_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional filter — trail_camera, blind, water_source, food_plot","title":"Asset Type"},"description":"Optional filter — trail_camera, blind, water_source, food_plot"},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_MapAssetListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/assets":{"post":{"tags":["property-assets"],"summary":"Create Asset","description":"Create a water_source / food_plot row.\n\nRequires the property to belong to an org — the ``assets``\ntable's ``organization_id`` is non-null. Individual-hunter\nproperties (no org) get a clean 400.","operationId":"create_asset_api_v1_properties__property_id__assets_post","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AssetResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/assets/{asset_id}":{"patch":{"tags":["property-assets"],"summary":"Update Asset","operationId":"update_asset_api_v1_properties__property_id__assets__asset_id__patch","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","description":"Asset id","title":"Asset Id"},"description":"Asset id"},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AssetResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["property-assets"],"summary":"Delete Asset","operationId":"delete_asset_api_v1_properties__property_id__assets__asset_id__delete","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","description":"Asset id","title":"Asset Id"},"description":"Asset id"},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/assets/bulk-import":{"post":{"tags":["property-assets"],"summary":"Bulk Import Assets","description":"CSV columns: ``asset_type, name, latitude, longitude,\ndescription, asset_metadata_json``.\n\nPer-row errors are collected and returned alongside the\nsuccessfully-imported rows; the upload is committed atomically\nso a partial-failure response means \"everything that's listed\nsucceeded was actually persisted, and everything that failed\nwas rolled back\".\n\nThe directive proposed `metadata_json`; renamed to\n``asset_metadata_json`` to match the column name.","operationId":"bulk_import_assets_api_v1_properties__property_id__assets_bulk_import_post","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_bulk_import_assets_api_v1_properties__property_id__assets_bulk_import_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_BulkImportResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/heatmaps":{"get":{"tags":["property-assets"],"summary":"List Heatmaps","description":"Unified heatmap. For wildlife species, delegates to the\nexisting :class:`HeatmapService` (no behavior change). For\npredator species, aggregates ``predator_sightings`` by lat/lng\nbucket — count is the heatmap weight.\n\nCaller tier is forwarded to the service so free-tier callers\nget the 90-day window clamp (Free-Tier spec §3).","operationId":"list_heatmaps_api_v1_properties__property_id__heatmaps_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"species","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional single-species filter.","title":"Species"},"description":"Optional single-species filter."},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_HeatmapListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/heatmap":{"get":{"tags":["property-assets"],"summary":"Flat Heatmap","description":"Flat-list heatmap shape consumed by the J13c-1 HeatmapLayer.\n\nDEPRECATED (M4 / Asana 1215159507963846): use the plural\n``/properties/{property_id}/heatmaps`` for the canonical wildlife\nheatmap shape. This route remains active for predator-sightings\ncallers and is logged on every hit so we can confirm migration\ncompletion before removal post-BETA (Asana 1215192594164264).\n\nDiffers from the plural ``/heatmaps`` route in three ways:\n\n* Multi-species filter (comma-delimited) instead of single.\n* Date range filter (defaults to last 90 days).\n* Flat ``points`` list with ``{lat, lng, weight}`` instead of\n  a per-species nested shape — saves the FE from re-flattening.\n\nSource data is currently ``predator_sightings`` only; the\nplural ``/heatmaps`` route still owns wildlife species.","operationId":"flat_heatmap_api_v1_properties__property_id__heatmap_get","deprecated":true,"parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"species","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-delimited species filter; absent = all","title":"Species"},"description":"Comma-delimited species filter; absent = all"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Inclusive lower bound (ISO 8601)","title":"Start Date"},"description":"Inclusive lower bound (ISO 8601)"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Inclusive upper bound (ISO 8601)","title":"End Date"},"description":"Inclusive upper bound (ISO 8601)"},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_HeatmapFlatResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/predator-sightings":{"post":{"tags":["property-assets"],"summary":"Create Predator Sighting","description":"Single predator sighting create.\n\nEnforces the J13a CHECK constraint on ``species`` (coyote,\nbobcat, mountain_lion, hog) via the ``PredatorSpecies`` literal\ntype at the schema layer.\n\nSurface-level convenience fields (``sighting_time``,\n``observer``, ``notes``, ``photo_urls``) are folded into\n``sighting_metadata`` JSONB on the way in — no schema change\nrequired to support them. Forward-compatible with promoting\nthem to columns later.","operationId":"create_predator_sighting_api_v1_properties__property_id__predator_sightings_post","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredatorSightingCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PredatorSightingResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/predator-sightings/{sighting_id}":{"get":{"tags":["property-assets"],"summary":"Get Predator Sighting","description":"PR-J13c-2 — sighting detail with attached photos.\n\nUsed by the popup to render the photo grid; the map-assets\nlist view doesn't carry photos to keep that payload small.","operationId":"get_predator_sighting_api_v1_properties__property_id__predator_sightings__sighting_id__get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"sighting_id","in":"path","required":true,"schema":{"type":"string","description":"Sighting id","title":"Sighting Id"},"description":"Sighting id"},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PredatorSightingDetailResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["property-assets"],"summary":"Update Predator Sighting","description":"Partial update. Convenience fields (time/observer/notes)\nmerge into ``sighting_metadata``; the JSONB blob is preserved\non every other key.","operationId":"update_predator_sighting_api_v1_properties__property_id__predator_sightings__sighting_id__patch","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"sighting_id","in":"path","required":true,"schema":{"type":"string","description":"Sighting id","title":"Sighting Id"},"description":"Sighting id"},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredatorSightingUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PredatorSightingDetailResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["property-assets"],"summary":"Delete Predator Sighting","description":"Hard-delete the sighting + cascade-delete attached photos.\n\nR2 cleanup runs as a FastAPI background task AFTER the response\nis sent — meaning after ``get_db`` commits. This guarantees R2\nobjects are only deleted once the DB delete actually persisted;\na tx rollback (audit failure, DB hiccup) leaves R2 untouched.\n\nR2 failures inside the background task are logged but never\nsurface to the client. Worst case: orphaned R2 objects, which\na retention sweep handles separately.","operationId":"delete_predator_sighting_api_v1_properties__property_id__predator_sightings__sighting_id__delete","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"sighting_id","in":"path","required":true,"schema":{"type":"string","description":"Sighting id","title":"Sighting Id"},"description":"Sighting id"},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/predator-sightings/{sighting_id}/photos/upload":{"post":{"tags":["property-assets"],"summary":"Init Photo Upload","description":"Generate an R2 presigned PUT URL for a single photo.\n\nThe Photo row is created in ``analysis_status=\"pending\"``.\nThe browser uploads directly to R2 and then calls /confirm\nto flip to ``processing`` and (in a follow-up) kick off\nanalysis.","operationId":"init_photo_upload_api_v1_properties__property_id__predator_sightings__sighting_id__photos_upload_post","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"sighting_id","in":"path","required":true,"schema":{"type":"string","description":"Sighting id","title":"Sighting Id"},"description":"Sighting id"},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoUploadInitRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PhotoUploadInitResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/predator-sightings/{sighting_id}/photos/{photo_id}/confirm":{"post":{"tags":["property-assets"],"summary":"Confirm Photo Upload","description":"Mark the photo as uploaded. Verifies the R2 object exists\nvia HEAD; flips ``analysis_status`` to ``processing``.\n\nTriggering analysis is a J13c-3 follow-up — the new\ninference pipeline already covers user-uploaded photos by\nphoto_id, but plumbing a sighting-context hint into it is\nincremental work.","operationId":"confirm_photo_upload_api_v1_properties__property_id__predator_sightings__sighting_id__photos__photo_id__confirm_post","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"sighting_id","in":"path","required":true,"schema":{"type":"string","description":"Sighting id","title":"Sighting Id"},"description":"Sighting id"},{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","description":"Photo id","title":"Photo Id"},"description":"Photo id"},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PredatorSightingPhoto_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/predator-sightings/bulk-import":{"post":{"tags":["property-assets"],"summary":"Bulk Import Predator Sightings","description":"CSV columns: ``species, latitude, longitude, sighting_date,\nsighting_time, count, confidence, observer, notes``.\n\nPer-row failures are collected; valid rows commit. The CSV\nis URL-scoped to the property — no ``property_id`` column is\nrequired (it would also be ignored if present).","operationId":"bulk_import_predator_sightings_api_v1_properties__property_id__predator_sightings_bulk_import_post","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_bulk_import_predator_sightings_api_v1_properties__property_id__predator_sightings_bulk_import_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PredatorBulkImportResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/maps/key":{"get":{"tags":["maps"],"summary":"Get Maps Key","description":"Return the Google Maps API key for frontend init.\n\nSECURITY: this endpoint is **nominal** protection. The real\ndefense against key theft is HTTP Referrer Restrictions\nconfigured in the Google Cloud Console — without those, any\nauthenticated user can scrape the key from the response and\nuse it on any origin. Restrict the key to your frontend\ndomain(s) before BETA.\n\nSee ``GOOGLE_MAPS_API_KEY`` in ``.env``. When unset, the\nendpoint returns a 503 so callers can render a fallback.","operationId":"get_maps_key_api_v1_maps_key_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_MapsKeyResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ingest/zip/init":{"post":{"tags":["ingest"],"summary":"Init Zip Upload","operationId":"init_zip_upload_api_v1_ingest_zip_init_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitZipUploadRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_InitZipUploadResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ingest/zip/parts":{"post":{"tags":["ingest"],"summary":"Presign Zip Parts","description":"Lazily presign a page of multipart part URLs (PR-U1 §4.2).\n\nThe v2 streaming client calls this repeatedly as its ZIP writer emits parts,\ninstead of receiving every URL up front at init.","operationId":"presign_zip_parts_api_v1_ingest_zip_parts_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZipUploadPartsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ZipUploadPartsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ingest/zip/complete":{"post":{"tags":["ingest"],"summary":"Complete Zip Upload","operationId":"complete_zip_upload_api_v1_ingest_zip_complete_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteZipUploadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CompleteZipUploadResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ingest/batch/{batch_id}":{"get":{"tags":["ingest"],"summary":"Get Batch Status","operationId":"get_batch_status_api_v1_ingest_batch__batch_id__get","parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_UploadBatchStatusResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ingest/batches":{"get":{"tags":["ingest"],"summary":"List Batches","operationId":"list_batches_api_v1_ingest_batches_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_UploadBatchListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ingest/desktop/init":{"post":{"tags":["ingest"],"summary":"Init Desktop Upload","operationId":"init_desktop_upload_api_v1_ingest_desktop_init_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DesktopUploadInitRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_DesktopUploadInitResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ingest/csv":{"post":{"tags":["ingest"],"summary":"Ingest Csv","description":"Upload a CSV of image URLs.\n\nWorkflow:\n  1. Reject obvious non-CSVs via the file-type detector.\n  2. Stash the raw body in R2 for the worker to fetch.\n  3. Create the UploadBatch (kind='data', source='csv_url_list')\n     and enqueue ``process_csv_batch``.\n  4. Return the batch_id immediately. Caller polls\n     /ingest/batch/{id}/items for per-row progress.\n\nDesigned for outfitter-tier accounts only — same gate as ZIP\nupload. Consumer tiers receive 403.","operationId":"ingest_csv_api_v1_ingest_csv_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_ingest_csv_api_v1_ingest_csv_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CsvIngestResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ingest/batch/{batch_id}/items":{"get":{"tags":["ingest"],"summary":"Get Batch Items","description":"Per-row status for a data-kind upload batch.\n\nOwners can read their own batches' items. Non-owners get 404\nrather than 403 to avoid disclosing batch existence.","operationId":"get_batch_items_api_v1_ingest_batch__batch_id__items_get","parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":500,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_UploadItemsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/invite/{token}":{"get":{"tags":["invites"],"summary":"Lookup Invite","description":"Resolve an invite token for the landing page.\n\nAlways 200 — ``valid=False`` carries the failure ``reason``\n(``unknown``/``expired``/``claimed``) so the page can render\nfriendly copy. Sensitive fields (organization_id, role) are\nsurfaced only when the invite is still valid; for invalid\ninvites we still echo the email and reason so the UX can read\n\"this invite for foo@example.com has expired\".","operationId":"lookup_invite_api_v1_invite__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_InviteLookupResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/invites":{"get":{"tags":["invites"],"summary":"List Org Invites","description":"List an org's invites (T11), default ``status=pending``.\n\nScoped to the caller's **active** org (RBAC P3 / R4 — resolved from\nX-WildLens-Context, not the dormant profile pointer). A regular owner\nnaming a different ``organization_id`` gets a 404 — cross-org is\ninvisible. ``status=pending`` filters to live invites; any other value\nreturns the org's full invite history.","operationId":"list_org_invites_api_v1_invites_get","parameters":[{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"pending","title":"Status"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_InviteListItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/invites/{invite_id}":{"delete":{"tags":["invites"],"summary":"Revoke Org Invite","description":"Revoke an org-scoped invite (T12). Idempotent.\n\n404 when the invite doesn't exist OR isn't in the caller's **active**\norg (non-privileged) — including property-scoped invites, which this\norg-facing endpoint never owns.","operationId":"revoke_org_invite_api_v1_invites__invite_id__delete","parameters":[{"name":"invite_id","in":"path","required":true,"schema":{"type":"string","title":"Invite Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/invite":{"post":{"tags":["invites"],"summary":"Create Org Invite","description":"Org owner invites a teammate (T13 — BETA-blocking).\n\nOwner-gated (founders/admins bypass). The invite is pinned to the\ncaller's **active** org (RBAC P3 / R4 — resolved from X-WildLens-Context,\nso a multi-org owner can invite into whichever org they're acting in).\nA body ``organization_id`` naming a different org is rejected 403 for\nregular owners (founders/admins may target any org). Returns\n``invite_url`` + ``expires_at`` for out-of-band delivery.","operationId":"create_org_invite_api_v1_invite_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateInviteRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CreateInviteResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/weekend-briefing":{"post":{"tags":["reports"],"summary":"Create Weekend Briefing","description":"Create a ``Report`` row + dispatch the Celery generation task.\n\nThe ``WeekendBriefingRequest`` schema enforces\n  * date_from ≤ date_to\n  * guide_ids is null or a non-empty list (empty → 422)\nso the only remaining router-level work is org resolution +\nparameter assembly.","operationId":"create_weekend_briefing_api_v1_reports_weekend_briefing_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WeekendBriefingRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_WeekendBriefingCreateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/weekend-briefing/{report_id}":{"get":{"tags":["reports"],"summary":"Get Weekend Briefing","description":"Retrieve a weekend-briefing Report + presigned URL when ready.\n\nFilters by ``profile_id`` so only the original requester (or an\nadmin / founder, who bypass via the existing permissions service)\ncan fetch the row. Same tenancy posture as the legacy\n``GET /api/v1/reports/{id}`` endpoint.","operationId":"get_weekend_briefing_api_v1_reports_weekend_briefing__report_id__get","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ReportListEntry_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/hunter-roster":{"get":{"tags":["reports"],"summary":"Hunter Roster","description":"Per-hunter rollup with hunt + harvest counts. Inactive hunters\nhidden by default.","operationId":"hunter_roster_api_v1_reports_hunter_roster_get","parameters":[{"name":"include_inactive","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Inactive"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_HunterRosterReport_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/harvest":{"get":{"tags":["reports"],"summary":"Harvest","description":"Per-record harvest list scoped to the org. Default window is\nthe last 90 days when both date params are omitted.","operationId":"harvest_api_v1_reports_harvest_get","parameters":[{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date To"}},{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Id"}},{"name":"species","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species"}},{"name":"hunter_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hunter Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_HarvestReport_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/property-performance":{"get":{"tags":["reports"],"summary":"Property Performance","description":"Per-property KPI rollup. Includes zeroed rows for properties\nwith no activity in the window so dashboards don't accidentally\ndrop a quiet property from the grid.","operationId":"property_performance_api_v1_reports_property_performance_get","parameters":[{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date To"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PropertyPerformanceReport_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/sightings":{"get":{"tags":["reports"],"summary":"Sightings","description":"Per-property × species rollup. Mirrors AnalyticsService.species_summary's\n``coalesce(corrected_species, primary_species)`` precedence so the\ntable aligns with every other species view in the platform.","operationId":"sightings_api_v1_reports_sightings_get","parameters":[{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date To"}},{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Id"}},{"name":"species","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_SightingsReport_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/hit-list":{"get":{"tags":["reports"],"summary":"Hit List","description":"Active hit-list targets — tracked bucks seen in the window, one row per\nbuck at its most recent sighting.\n\nReads the same producer the weekend-briefing PDF renders\n(``WeekendBriefingService.hit_list``), so the export and the report cannot\ndisagree about what the org's hit list is. Before this the entries existed\nonly inside a rendered PDF, which is why the frontend shipped a fixture.\n\nGated ``require_outfitter_access`` (WLAI-456 F3: a RutLine org's owner /\nmanager passes regardless of personal tier) + ``require_org_manager_or_above`` to\nmatch the weekend-briefing endpoints this data already backs. Guides get\n403 from the manager gate.\n\nUnlike the briefing — whose property set comes from the sessions inside\nits date window — this resolves properties from the ORG, so it answers\n\"the org's hit list\" rather than \"bucks near properties with hunts\nbooked\".","operationId":"hit_list_api_v1_reports_hit_list_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":30,"minimum":1,"description":"Sighting lookback window. Defaults to the weekend-briefing's own 7-day window so this endpoint and the PDF agree by default; capped at 30.","default":7,"title":"Days"},"description":"Sighting lookback window. Defaults to the weekend-briefing's own 7-day window so this endpoint and the PDF agree by default; capped at 30."},{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Narrow to one property in the org. Omit for org-wide.","title":"Property Id"},"description":"Narrow to one property in the org. Omit for org-wide."},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_HitListReport_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/summary":{"get":{"tags":["pro"],"summary":"Property Summary","operationId":"property_summary_api_v1_properties__property_id__summary_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PropertySummaryResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/peak-window-today":{"get":{"tags":["pro"],"summary":"Peak Window Today","description":"Closest upcoming (or currently-active) peak movement window\nacross all species on this property. Powers the small dashboard\ncard. Returns null when no temporal patterns have been computed.","operationId":"peak_window_today_api_v1_properties__property_id__peak_window_today_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Union_dict__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/species":{"get":{"tags":["pro"],"summary":"Property Species","operationId":"property_species_api_v1_properties__property_id__species_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_SpeciesBreakdownResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/individuals":{"get":{"tags":["pro"],"summary":"Property Individuals","operationId":"property_individuals_api_v1_properties__property_id__individuals_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":10,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_TopIndividualsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/camera-matrix":{"get":{"tags":["pro"],"summary":"Property Camera Matrix","operationId":"property_camera_matrix_api_v1_properties__property_id__camera_matrix_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"weeks","in":"query","required":false,"schema":{"type":"integer","maximum":52,"minimum":1,"default":12,"title":"Weeks"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CameraMatrixResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/properties/{property_id}/heatmap":{"get":{"tags":["pro"],"summary":"Property Heatmap","operationId":"property_heatmap_api_v1_pro_properties__property_id__heatmap_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"species","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species"}},{"name":"time_of_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Bucket detections by time of day: dawn, morning, midday, afternoon, dusk, night.","title":"Time Of Day"},"description":"Bucket detections by time of day: dawn, morning, midday, afternoon, dusk, night."},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}},{"name":"precision","in":"query","required":false,"schema":{"type":"integer","maximum":400,"minimum":10,"description":"Grid cell size in YARDS (DEFECT-101). Default 30 yd; server auto-coarsens under the cell cap for large properties.","default":30,"title":"Precision"},"description":"Grid cell size in YARDS (DEFECT-101). Default 30 yd; server auto-coarsens under the cell cap for large properties."},{"name":"mode","in":"query","required":false,"schema":{"type":"string","description":"measured | predicted | both. 'both' returns the MEASURED core + the TRIANGULATED predicted band.","default":"both","title":"Mode"},"description":"measured | predicted | both. 'both' returns the MEASURED core + the TRIANGULATED predicted band."},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_HeatmapResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/properties/{property_id}/movement-direction":{"get":{"tags":["pro"],"summary":"Property Movement Direction","description":"Directional movement summary for a property (R8 / PR-4c).\n\nRolls per-detection facing bearings up into a net flow octant +\nconcentration over the last ``days``. ``multi_camera`` when 2+ cameras\ncontribute (flow triangulated across the grid), else ``single_camera``;\n``insufficient_data`` below the minimum detection threshold.","operationId":"property_movement_direction_api_v1_pro_properties__property_id__movement_direction_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"description":"Look-back window in days.","default":30,"title":"Days"},"description":"Look-back window in days."},{"name":"species","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PropertyMovementDirection_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/corridors":{"get":{"tags":["pro"],"summary":"Property Corridors","description":"Movement-corridor inference for a property.\n\nFree-tier-reachable (Asana 1215159577118537, M3): previously gated\nby ``require_outfitter_tier`` + ``_enforce_onboarding``. Both gates\nremoved so all property members (free, paid consumer, outfitter)\ncan access. The service-layer logic is property-scoped via\nrequire_property_access and does not assume an organization.\n\nResponse shape (R17 / Strict R7): flat ``from_camera_id`` /\n``from_camera_name`` / ``to_camera_id`` / ``to_camera_name`` fields\npreserved AS-IS so existing outfitter callers keep working. Nested\n``from_camera`` / ``to_camera`` added alongside for the new Cat 1\ncontract. Flat fields drop post-BETA once Cat 1 confirms no\nremaining consumers (TODO on CorridorPath schema).","operationId":"property_corridors_api_v1_properties__property_id__corridors_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"species","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}},{"name":"max_transit_hours","in":"query","required":false,"schema":{"type":"integer","maximum":168,"minimum":1,"default":12,"title":"Max Transit Hours"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CorridorResponsePro_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports":{"get":{"tags":["pro"],"summary":"List Reports","operationId":"list_reports_api_v1_reports_get","parameters":[{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ReportListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["pro"],"summary":"Create Report","description":"Create a Report row + kick off the Celery generation task.\n\nProperty access is enforced inline rather than via\n``require_property_access(property_id=Path())`` because the id arrives\nin the JSON body.","operationId":"create_report_api_v1_reports_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ReportCreateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/onboarding":{"get":{"tags":["pro"],"summary":"Get Onboarding","description":"Derived onboarding checklist for the caller's active org. Read-only.","operationId":"get_onboarding_api_v1_onboarding_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_OnboardingStateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/onboarding/complete-step":{"post":{"tags":["pro"],"summary":"Complete Onboarding Step","description":"DEPRECATED — scheduled for removal (WLAI-513).\n\nOnboarding state is derived from live data, so a step can no longer be\nmarked. The request schema is still accepted (an unknown step is still a\n422) for N-1 clients, but the call changes nothing and returns the same\nderived state as ``GET /api/v1/onboarding``.","operationId":"complete_onboarding_step_api_v1_onboarding_complete_step_post","deprecated":true,"parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingCompleteStepRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_OnboardingStateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/{report_id}":{"get":{"tags":["pro"],"summary":"Get Report","operationId":"get_report_api_v1_reports__report_id__get","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ReportListEntry_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/individual/ingest/zip/init":{"post":{"tags":["individual-hunter"],"summary":"Init Zip Upload","description":"Start a multi-file upload session.\n\nSession-cap pre-flight and 200-photos-per-session ceiling fire\ninside :class:`IngestService`. Free hunters at 2/2 sessions get a\n429 here; over-cap photo count gets a 429 with\n``photos_per_upload_session`` as the resource.","operationId":"init_zip_upload_api_v1_individual_ingest_zip_init_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitZipUploadRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_InitZipUploadResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/individual/ingest/zip/parts":{"post":{"tags":["individual-hunter"],"summary":"Presign Zip Parts","description":"Lazily presign a page of multipart part URLs (PR-U1 §4.2), free-tier\nreachable. Same bounds + ownership rules as the outfitter route.","operationId":"presign_zip_parts_api_v1_individual_ingest_zip_parts_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZipUploadPartsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ZipUploadPartsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/individual/ingest/zip/complete":{"post":{"tags":["individual-hunter"],"summary":"Complete Zip Upload","operationId":"complete_zip_upload_api_v1_individual_ingest_zip_complete_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteZipUploadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CompleteZipUploadResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/individual/ingest/batch/{batch_id}":{"get":{"tags":["individual-hunter"],"summary":"Get Batch Status","operationId":"get_batch_status_api_v1_individual_ingest_batch__batch_id__get","parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_UploadBatchStatusResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/individual/ingest/batches":{"get":{"tags":["individual-hunter"],"summary":"List Batches","operationId":"list_batches_api_v1_individual_ingest_batches_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_UploadBatchListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/individual/properties/{property_id}/heatmap":{"get":{"tags":["individual-hunter"],"summary":"Property Heatmap","description":"Free / individual heat map. 90-day window clamp fires inside\n:class:`HeatmapService` based on ``user.subscription_tier``.\n\nNOT deprecated (#248). This route was carrying an RFC 8594\n``Deprecation: true`` header and an OpenAPI ``deprecated=True`` marker\npointing at the plural ``/properties/{property_id}/heatmaps`` as its\nsuccessor. That successor does not serve this route's contract: the\nplural route takes no ``time_of_day``, ``date_from``/``date_to``, or\n``precision``, and returns a per-species flat point list rather than the\nclustered ``HeatmapResponse`` with bbox + meta that the individual map\nrenders from. Signalling deprecation toward an endpoint that cannot\nreplace it told integrators to migrate onto a lossy shape.\n\nThe sibling singular route (``property_assets.flat_heatmap``) keeps its\ndeprecation — that one IS genuinely superseded.\n\nMEASURED-only by design (R6): the TRIANGULATED predicted band is an\noutfitter-tier capability and is served from the /pro heatmap route, not\nhere. No in-app lock — upgrade messaging lives in the FE.","operationId":"property_heatmap_api_v1_individual_properties__property_id__heatmap_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"species","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species"}},{"name":"time_of_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Time Of Day"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}},{"name":"precision","in":"query","required":false,"schema":{"type":"integer","maximum":400,"minimum":10,"description":"Grid cell size in YARDS (DEFECT-101). Default 30 yd.","default":30,"title":"Precision"},"description":"Grid cell size in YARDS (DEFECT-101). Default 30 yd."},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_HeatmapResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/individual/usage":{"get":{"tags":["individual-hunter"],"summary":"Get Usage","operationId":"get_usage_api_v1_individual_usage_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_IndividualUsageResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/individual/properties/{property_id}/invites":{"post":{"tags":["individual-hunter"],"summary":"Create Property Invite","operationId":"create_property_invite_api_v1_individual_properties__property_id__invites_post","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyInviteCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PropertyInviteCreateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["individual-hunter"],"summary":"List Property Invites","operationId":"list_property_invites_api_v1_individual_properties__property_id__invites_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_PropertyInviteResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/individual/properties/{property_id}/invites/{invite_id}":{"delete":{"tags":["individual-hunter"],"summary":"Revoke Property Invite","operationId":"revoke_property_invite_api_v1_individual_properties__property_id__invites__invite_id__delete","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"invite_id","in":"path","required":true,"schema":{"type":"string","title":"Invite Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PropertyInviteResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/individual/billing/checkout":{"post":{"tags":["individual-hunter"],"summary":"Create Property Slot Checkout","description":"Start a Stripe Checkout session for the property-slot add-on.\n\nBETA: pricing is unset (Open Item #01). Returns 503 with\n``code=pricing_not_configured`` until ``stripe_price_property_slot``\nis populated via env. The Stripe webhook handler (Phase 3) will\nbump ``profile.extra_property_slots`` on successful completion.","operationId":"create_property_slot_checkout_api_v1_individual_billing_checkout_post","parameters":[{"name":"item","in":"query","required":true,"schema":{"type":"string","description":"Add-on identifier. Only 'property_slot' is supported.","title":"Item"},"description":"Add-on identifier. Only 'property_slot' is supported."},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertySlotCheckoutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PropertySlotCheckoutResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/case-studies":{"post":{"tags":["case-studies"],"summary":"Create Case Study","description":"Create a Case Study row + enqueue PDF generation.","operationId":"create_case_study_api_v1_case_studies_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseStudyCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CaseStudyCreateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["case-studies"],"summary":"List Case Studies","operationId":"list_case_studies_api_v1_case_studies_get","parameters":[{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Property Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CaseStudyListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/case-studies/{case_study_id}":{"get":{"tags":["case-studies"],"summary":"Get Case Study","operationId":"get_case_study_api_v1_case_studies__case_study_id__get","parameters":[{"name":"case_study_id","in":"path","required":true,"schema":{"type":"string","title":"Case Study Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CaseStudyEntry_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/taxonomy":{"get":{"tags":["taxonomy"],"summary":"List Taxonomy","operationId":"list_taxonomy_api_v1_taxonomy_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":5000,"minimum":1,"default":1000,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_TaxonListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/taxonomy/search":{"get":{"tags":["taxonomy"],"summary":"Search Taxonomy","operationId":"search_taxonomy_api_v1_taxonomy_search_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":120,"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_TaxonListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/taxonomy/{taxon_id}":{"get":{"tags":["taxonomy"],"summary":"Get Taxon","operationId":"get_taxon_api_v1_taxonomy__taxon_id__get","parameters":[{"name":"taxon_id","in":"path","required":true,"schema":{"type":"string","title":"Taxon Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_TaxonResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/taxonomy/{taxon_id}/children":{"get":{"tags":["taxonomy"],"summary":"Get Taxon Children","operationId":"get_taxon_children_api_v1_taxonomy__taxon_id__children_get","parameters":[{"name":"taxon_id","in":"path","required":true,"schema":{"type":"string","title":"Taxon Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_TaxonListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/patterns":{"get":{"tags":["temporal-patterns"],"summary":"Get Latest Pattern","description":"Latest persisted pattern for this property + species.\n\nReturns null when none has been computed yet — the frontend shows\na \"compute now\" CTA in that case rather than a blank chart.","operationId":"get_latest_pattern_api_v1_pro_patterns_get","parameters":[{"name":"property_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"species_taxon_id","in":"query","required":true,"schema":{"type":"string","title":"Species Taxon Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Union_TemporalPatternResponse__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/patterns/by-property":{"get":{"tags":["temporal-patterns"],"summary":"List Property Patterns","description":"Latest pattern *per species* for a property.\n\nPowers the Case Study \"Movement Patterns\" section and the Pro\nDashboard's peak-window card, both of which iterate across species.","operationId":"list_property_patterns_api_v1_pro_patterns_by_property_get","parameters":[{"name":"property_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":25,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PatternListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/patterns/recompute":{"post":{"tags":["temporal-patterns"],"summary":"Recompute Pattern","description":"Trigger a fresh compute pass. Synchronous — the math is cheap\n(seconds, not minutes) even on large properties, and the UX\nimprovement of ``POST → done`` vs. ``POST → poll`` is significant.\n\nIf we ever hit a property that takes > 30s, swap this for a Celery\ndispatch; the service method is already safe to call from a task.","operationId":"recompute_pattern_api_v1_pro_patterns_recompute_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__routers__patterns__RecomputeRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_RecomputeResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/forecasts/generate":{"post":{"tags":["movement-forecasts"],"summary":"Generate Forecast","description":"Trigger generation, persist, and return the row.","operationId":"generate_forecast_api_v1_pro_forecasts_generate_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__routers__forecasts__GenerateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_MovementForecastResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/forecasts/latest":{"get":{"tags":["movement-forecasts"],"summary":"Get Latest Forecast","operationId":"get_latest_forecast_api_v1_pro_forecasts_latest_get","parameters":[{"name":"property_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"species_taxon_id","in":"query","required":true,"schema":{"type":"string","title":"Species Taxon Id"}},{"name":"horizon","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":168,"minimum":1},{"type":"null"}],"title":"Horizon"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Union_MovementForecastResponse__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/properties/{property_id}/best-windows-today":{"get":{"tags":["movement-forecasts"],"summary":"Best Windows Today","description":"The closest best-window across all species for today, plus the\nspecies that owns it. Silent (null) when no forecast exists.","operationId":"best_windows_today_api_v1_properties__property_id__best_windows_today_get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Union_dict__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/stands":{"post":{"tags":["stands"],"summary":"Create Stand","operationId":"create_stand_api_v1_pro_stands_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__common__ApiResponse_StandResponse___2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["stands"],"summary":"List Stands","operationId":"list_stands_api_v1_pro_stands_get","parameters":[{"name":"property_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_StandListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/stands/{stand_id}":{"get":{"tags":["stands"],"summary":"Get Stand","operationId":"get_stand_api_v1_pro_stands__stand_id__get","parameters":[{"name":"stand_id","in":"path","required":true,"schema":{"type":"string","title":"Stand Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__common__ApiResponse_StandResponse___2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/stand-suitability/generate":{"post":{"tags":["stand-suitability"],"summary":"Generate Suitability","operationId":"generate_suitability_api_v1_pro_stand_suitability_generate_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuitabilityGenerateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_SuitabilityListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/stand-suitability/top-right-now":{"get":{"tags":["stand-suitability"],"summary":"Top Stand Right Now","description":"Highest-suitability stand across ALL species for this property,\ndrawn from snapshots generated in the last ``lookback_hours``.\nPowers the dashboard 'Best Stand Right Now' card.\n\nSilent (null) when no snapshots exist — the dashboard omits the\ncard entirely in that case.","operationId":"top_stand_right_now_api_v1_pro_stand_suitability_top_right_now_get","parameters":[{"name":"property_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"lookback_hours","in":"query","required":false,"schema":{"type":"integer","maximum":168,"minimum":1,"default":48,"title":"Lookback Hours"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Union_SuitabilityResponse__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/stand-suitability/best":{"get":{"tags":["stand-suitability"],"summary":"Best Stand","description":"Return the top-ranked latest snapshot for this species on this\nproperty. Null when no snapshots exist yet — the frontend prompts\na generate.","operationId":"best_stand_api_v1_pro_stand_suitability_best_get","parameters":[{"name":"property_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"species_taxon_id","in":"query","required":true,"schema":{"type":"string","title":"Species Taxon Id"}},{"name":"horizon","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":168,"minimum":1},{"type":"null"}],"title":"Horizon"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Union_SuitabilityResponse__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/alerts/evaluate":{"post":{"tags":["alerts"],"summary":"Evaluate Alerts","description":"Run every enabled alert_rule for this profile (+ optional\nproperty scope). Auto-initializes default rules first so a\nbrand-new profile never gets an empty response on first call.","operationId":"evaluate_alerts_api_v1_pro_alerts_evaluate_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_EvaluateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/alerts/recent":{"get":{"tags":["alerts"],"summary":"List Recent Alerts","operationId":"list_recent_alerts_api_v1_pro_alerts_recent_get","parameters":[{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Property Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"only_unacknowledged","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Only Unacknowledged"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AlertListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/alerts/unread-count":{"get":{"tags":["alerts"],"summary":"Get Unread Count","description":"Single-integer endpoint powering the bell-icon badge. Separate\nfrom /recent so the header can poll cheaply on a short interval.","operationId":"get_unread_count_api_v1_pro_alerts_unread_count_get","parameters":[{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_UnreadCountResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/alerts/{alert_id}/acknowledge":{"post":{"tags":["alerts"],"summary":"Acknowledge Alert","operationId":"acknowledge_alert_api_v1_pro_alerts__alert_id__acknowledge_post","parameters":[{"name":"alert_id","in":"path","required":true,"schema":{"type":"string","title":"Alert Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_AlertResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/alerts/scheduler/run":{"post":{"tags":["alerts"],"summary":"Run Scheduler","description":"Run the scheduler manually. Admin-gated — normal users\ninteract with alerts via the Phase 14 evaluate endpoint; this one\nis for ops / on-demand debugging.","operationId":"run_scheduler_api_v1_pro_alerts_scheduler_run_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_SchedulerRunResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/alerts/scheduler/state":{"get":{"tags":["alerts"],"summary":"Get Scheduler State","description":"Current profile's scheduler state. Find-or-creates on first\ncall so the dashboard indicator doesn't 404 before the first\nevaluation lands.","operationId":"get_scheduler_state_api_v1_pro_alerts_scheduler_state_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_SchedulerStateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/alerts/scheduler/update":{"post":{"tags":["alerts"],"summary":"Update Scheduler Cadence","operationId":"update_scheduler_cadence_api_v1_pro_alerts_scheduler_update_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchedulerUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_SchedulerStateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/analytics/alerts/summary":{"get":{"tags":["pro-analytics"],"summary":"Alerts Summary","operationId":"alerts_summary_api_v1_pro_analytics_alerts_summary_get","parameters":[{"name":"window_days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Window Days"}},{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/analytics/alerts/reliability":{"get":{"tags":["pro-analytics"],"summary":"Alerts Reliability","operationId":"alerts_reliability_api_v1_pro_analytics_alerts_reliability_get","parameters":[{"name":"window_days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Window Days"}},{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/analytics/intelligence/versions":{"get":{"tags":["pro-analytics"],"summary":"Intelligence Versions","operationId":"intelligence_versions_api_v1_pro_analytics_intelligence_versions_get","parameters":[{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Id"}},{"name":"artifact_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"pattern | forecast | stand_suitability","title":"Artifact Type"},"description":"pattern | forecast | stand_suitability"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict_str__Any___"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/ml/train":{"post":{"tags":["pro-ml"],"summary":"Train Model","operationId":"train_model_api_v1_pro_ml_train_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/ml/models":{"get":{"tags":["pro-ml"],"summary":"List Models","operationId":"list_models_api_v1_pro_ml_models_get","parameters":[{"name":"species_taxon_id","in":"query","required":true,"schema":{"type":"string","title":"Species Taxon Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict_str__Any___"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/ml/impact":{"get":{"tags":["pro-ml"],"summary":"Ml Impact","operationId":"ml_impact_api_v1_pro_ml_impact_get","parameters":[{"name":"species_taxon_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species Taxon Id"}},{"name":"window_days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Window Days"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/interactions/recompute":{"post":{"tags":["habitat-pressure"],"summary":"Recompute Interactions","operationId":"recompute_interactions_api_v1_pro_interactions_recompute_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__routers__habitat_pressure__RecomputeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/interactions":{"get":{"tags":["habitat-pressure"],"summary":"List Interactions","operationId":"list_interactions_api_v1_pro_interactions_get","parameters":[{"name":"property_id","in":"query","required":true,"schema":{"type":"string","title":"Property Id"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict_str__Any___"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/hpi":{"get":{"tags":["habitat-pressure"],"summary":"Latest Hpi","operationId":"latest_hpi_api_v1_pro_hpi_get","parameters":[{"name":"property_id","in":"query","required":true,"schema":{"type":"string","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/analytics/hpi":{"get":{"tags":["habitat-pressure"],"summary":"Hpi Analytics","operationId":"hpi_analytics_api_v1_pro_analytics_hpi_get","parameters":[{"name":"property_id","in":"query","required":true,"schema":{"type":"string","title":"Property Id"}},{"name":"window_days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Window Days"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/forecasts/long-range/generate":{"post":{"tags":["long-range-forecasts"],"summary":"Generate Long Range","operationId":"generate_long_range_api_v1_pro_forecasts_long_range_generate_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__routers__long_range_forecasts__GenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict_str__Any___"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/forecasts/long-range":{"get":{"tags":["long-range-forecasts"],"summary":"List Long Range","operationId":"list_long_range_api_v1_pro_forecasts_long_range_get","parameters":[{"name":"property_id","in":"query","required":true,"schema":{"type":"string","title":"Property Id"}},{"name":"species_taxon_id","in":"query","required":true,"schema":{"type":"string","title":"Species Taxon Id"}},{"name":"horizon_days","in":"query","required":false,"schema":{"type":"integer","maximum":14,"minimum":7,"default":14,"title":"Horizon Days"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict_str__Any___"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/analytics/forecasts/long-range":{"get":{"tags":["long-range-forecasts"],"summary":"Long Range Analytics","operationId":"long_range_analytics_api_v1_pro_analytics_forecasts_long_range_get","parameters":[{"name":"property_id","in":"query","required":true,"schema":{"type":"string","title":"Property Id"}},{"name":"species_taxon_id","in":"query","required":true,"schema":{"type":"string","title":"Species Taxon Id"}},{"name":"window_days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Window Days"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/fingerprints/generate":{"post":{"tags":["behavior-fingerprints"],"summary":"Generate Fingerprints","operationId":"generate_fingerprints_api_v1_pro_fingerprints_generate_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__routers__fingerprints__GenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/fingerprints":{"get":{"tags":["behavior-fingerprints"],"summary":"Get Fingerprint","operationId":"get_fingerprint_api_v1_pro_fingerprints_get","parameters":[{"name":"property_id","in":"query","required":true,"schema":{"type":"string","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/fingerprints/similarity":{"get":{"tags":["behavior-fingerprints"],"summary":"Get Similarity","operationId":"get_similarity_api_v1_pro_fingerprints_similarity_get","parameters":[{"name":"property_id","in":"query","required":true,"schema":{"type":"string","title":"Property Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/analytics/fingerprints":{"get":{"tags":["behavior-fingerprints"],"summary":"Fingerprint Analytics","operationId":"fingerprint_analytics_api_v1_pro_analytics_fingerprints_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/outfitters/create":{"post":{"tags":["outfitter-portal"],"summary":"Create Outfitter","description":"Create an outfitter record for the caller's profile.\nIdempotent — returns the existing row if the profile already\nowns one.","operationId":"create_outfitter_api_v1_pro_outfitters_create_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOutfitterRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_OutfitterResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/outfitters/{outfitter_id}/clients/invite":{"post":{"tags":["outfitter-portal"],"summary":"Invite Client","operationId":"invite_client_api_v1_pro_outfitters__outfitter_id__clients_invite_post","parameters":[{"name":"outfitter_id","in":"path","required":true,"schema":{"type":"string","title":"Outfitter Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteClientRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ClientResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/outfitters/{outfitter_id}/clients":{"get":{"tags":["outfitter-portal"],"summary":"List Clients","operationId":"list_clients_api_v1_pro_outfitters__outfitter_id__clients_get","parameters":[{"name":"outfitter_id","in":"path","required":true,"schema":{"type":"string","title":"Outfitter Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_ClientResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/outfitters/{outfitter_id}/stands/assign":{"post":{"tags":["outfitter-portal"],"summary":"Assign Stand","operationId":"assign_stand_api_v1_pro_outfitters__outfitter_id__stands_assign_post","parameters":[{"name":"outfitter_id","in":"path","required":true,"schema":{"type":"string","title":"Outfitter Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignStandRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_StandAssignmentResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/outfitters/{outfitter_id}/stands/assignments":{"get":{"tags":["outfitter-portal"],"summary":"List Assignments","operationId":"list_assignments_api_v1_pro_outfitters__outfitter_id__stands_assignments_get","parameters":[{"name":"outfitter_id","in":"path","required":true,"schema":{"type":"string","title":"Outfitter Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_StandAssignmentResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/intelligence/seed":{"post":{"tags":["admin-intelligence"],"summary":"Seed Intelligence","description":"Run the Phase 11→21 pipeline for every property owned by\nthis outfitter's profile. Returns a structured report so the\nadmin UI can render step-level progress.","operationId":"seed_intelligence_api_v1_admin_intelligence_seed_post","parameters":[{"name":"outfitter_id","in":"query","required":true,"schema":{"type":"string","title":"Outfitter Id"}},{"name":"step_delay_seconds","in":"query","required":false,"schema":{"type":"number","maximum":5.0,"minimum":0.0,"default":0.0,"title":"Step Delay Seconds"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/ml/training-status":{"get":{"tags":["admin-intelligence"],"summary":"Ml Training Status","description":"Extended in Phase 24: alongside the latest trained models\nwe surface a lightweight \"queue\" signal:\n  * ``pending_species`` — tuples eligible for training right now\n    (≥ MIN_POSITIVE_HOURS detection-positive hours in the window)\n    that don't have a current-version model. Cheap approximation;\n    the expensive signal comes from the event log below.\n  * ``recent_train_now`` — most recent manual / threshold events.","operationId":"ml_training_status_api_v1_admin_ml_training_status_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/ml/train-now":{"post":{"tags":["admin-intelligence"],"summary":"Train Now","description":"Train a single species across every eligible (profile,\nproperty) tuple immediately. Records an ml_training_event per\nattempt (trigger = \"train_now\").","operationId":"train_now_api_v1_admin_ml_train_now_post","parameters":[{"name":"species_taxon_id","in":"query","required":true,"schema":{"type":"string","title":"Species Taxon Id"}},{"name":"lookback_days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":14,"default":90,"title":"Lookback Days"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/ml/train-all":{"post":{"tags":["admin-intelligence"],"summary":"Train All","description":"Trigger the orchestrator synchronously. Same entry point as\nthe weekly beat task, exposed for on-demand runs.","operationId":"train_all_api_v1_admin_ml_train_all_post","parameters":[{"name":"lookback_days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":14,"default":90,"title":"Lookback Days"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/ml/training-events":{"get":{"tags":["admin-intelligence"],"summary":"Ml Training Events","description":"Append-only log of every training attempt — threshold-\ntriggered, onboarding, weekly, or manual.","operationId":"ml_training_events_api_v1_admin_ml_training_events_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict_str__Any___"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/outfitters/{outfitter_id}/onboard":{"post":{"tags":["admin-intelligence"],"summary":"Onboard Outfitter","description":"Full onboarding: intelligence seed + ML training + 7-day\noutlook in one admin call.","operationId":"onboard_outfitter_api_v1_admin_outfitters__outfitter_id__onboard_post","parameters":[{"name":"outfitter_id","in":"path","required":true,"schema":{"type":"string","title":"Outfitter Id"}},{"name":"step_delay_seconds","in":"query","required":false,"schema":{"type":"number","maximum":5.0,"minimum":0.0,"default":0.0,"title":"Step Delay Seconds"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/outfitters/{outfitter_id}/reseed":{"post":{"tags":["admin-intelligence"],"summary":"Reseed Outfitter","description":"Phase 24 — rerun the Phase 11→21 pipeline for every property\nunder this outfitter. Idempotent: each underlying service\nappends a new versioned row rather than mutating. Separate from\n``/onboard`` so admins can refresh intelligence without the\nonboarding-specific steps (outlook summary, ML training run).","operationId":"reseed_outfitter_api_v1_admin_outfitters__outfitter_id__reseed_post","parameters":[{"name":"outfitter_id","in":"path","required":true,"schema":{"type":"string","title":"Outfitter Id"}},{"name":"step_delay_seconds","in":"query","required":false,"schema":{"type":"number","maximum":5.0,"minimum":0.0,"default":0.0,"title":"Step Delay Seconds"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/outfitters/{outfitter_id}/hunt-plans/recommend":{"post":{"tags":["hunt-plans"],"summary":"Recommend Stands","operationId":"recommend_stands_api_v1_pro_outfitters__outfitter_id__hunt_plans_recommend_post","parameters":[{"name":"outfitter_id","in":"path","required":true,"schema":{"type":"string","title":"Outfitter Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecommendRequestBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_StandRecBody__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/outfitters/{outfitter_id}/hunt-plans/create":{"post":{"tags":["hunt-plans"],"summary":"Create Hunt Plan","operationId":"create_hunt_plan_api_v1_pro_outfitters__outfitter_id__hunt_plans_create_post","parameters":[{"name":"outfitter_id","in":"path","required":true,"schema":{"type":"string","title":"Outfitter Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateHuntPlanBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_HuntPlanResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/outfitters/{outfitter_id}/hunt-plans":{"get":{"tags":["hunt-plans"],"summary":"List Hunt Plans","operationId":"list_hunt_plans_api_v1_pro_outfitters__outfitter_id__hunt_plans_get","parameters":[{"name":"outfitter_id","in":"path","required":true,"schema":{"type":"string","title":"Outfitter Id"}},{"name":"upcoming_only","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Upcoming Only"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_HuntPlanResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/client/hunt-plans":{"get":{"tags":["hunt-plans-client"],"summary":"My Hunt Plans","operationId":"my_hunt_plans_api_v1_client_hunt_plans_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_ClientHuntPlanSummary__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/client/hunt-plans/{hunt_plan_id}/brief":{"get":{"tags":["hunt-plans-client"],"summary":"Hunt Brief","operationId":"hunt_brief_api_v1_client_hunt_plans__hunt_plan_id__brief_get","parameters":[{"name":"hunt_plan_id","in":"path","required":true,"schema":{"type":"string","title":"Hunt Plan Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/outfitters/{outfitter_id}/hunt-plans/{plan_id}/briefings/generate":{"post":{"tags":["hunt-briefings"],"summary":"Generate Briefing","operationId":"generate_briefing_api_v1_pro_outfitters__outfitter_id__hunt_plans__plan_id__briefings_generate_post","parameters":[{"name":"outfitter_id","in":"path","required":true,"schema":{"type":"string","title":"Outfitter Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"force_new","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force New"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_GenerateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/outfitters/{outfitter_id}/hunt-plans/{plan_id}/briefings":{"get":{"tags":["hunt-briefings"],"summary":"List Briefings","operationId":"list_briefings_api_v1_pro_outfitters__outfitter_id__hunt_plans__plan_id__briefings_get","parameters":[{"name":"outfitter_id","in":"path","required":true,"schema":{"type":"string","title":"Outfitter Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_BriefingSummary__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/outfitters/{outfitter_id}/hunt-plans/{plan_id}/briefings/{brief_id}/download":{"get":{"tags":["hunt-briefings"],"summary":"Download Briefing","operationId":"download_briefing_api_v1_pro_outfitters__outfitter_id__hunt_plans__plan_id__briefings__brief_id__download_get","parameters":[{"name":"outfitter_id","in":"path","required":true,"schema":{"type":"string","title":"Outfitter Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/client/hunt-plans/{plan_id}/brief":{"get":{"tags":["hunt-briefings-client"],"summary":"Client View Brief","description":"Return latest brief for this plan. Generates one on-demand if\nnone exists yet — the client's first view shouldn't race with\nthe outfitter's generate click.","operationId":"client_view_brief_api_v1_client_hunt_plans__plan_id__brief_get","parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_GenerateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/client/hunt-plans/{plan_id}/brief/download":{"get":{"tags":["hunt-briefings-client"],"summary":"Client Download Brief","operationId":"client_download_brief_api_v1_client_hunt_plans__plan_id__brief_download_get","parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/outfitters/{outfitter_id}/clients/{client_id}/notes":{"post":{"tags":["crm"],"summary":"Add Client Note","operationId":"add_client_note_api_v1_pro_outfitters__outfitter_id__clients__client_id__notes_post","parameters":[{"name":"outfitter_id","in":"path","required":true,"schema":{"type":"string","title":"Outfitter Id"}},{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddNoteBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_NoteResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["crm"],"summary":"List Client Notes","operationId":"list_client_notes_api_v1_pro_outfitters__outfitter_id__clients__client_id__notes_get","parameters":[{"name":"outfitter_id","in":"path","required":true,"schema":{"type":"string","title":"Outfitter Id"}},{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_NoteResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/outfitters/{outfitter_id}/clients/{client_id}/crm-summary":{"get":{"tags":["crm"],"summary":"Client Crm Summary","operationId":"client_crm_summary_api_v1_pro_outfitters__outfitter_id__clients__client_id__crm_summary_get","parameters":[{"name":"outfitter_id","in":"path","required":true,"schema":{"type":"string","title":"Outfitter Id"}},{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/outfitters/{outfitter_id}/crm-dashboard":{"get":{"tags":["crm"],"summary":"Crm Dashboard","operationId":"crm_dashboard_api_v1_pro_outfitters__outfitter_id__crm_dashboard_get","parameters":[{"name":"outfitter_id","in":"path","required":true,"schema":{"type":"string","title":"Outfitter Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/outfitters/{outfitter_id}/hunt-history":{"get":{"tags":["crm"],"summary":"List Hunt History","operationId":"list_hunt_history_api_v1_pro_outfitters__outfitter_id__hunt_history_get","parameters":[{"name":"outfitter_id","in":"path","required":true,"schema":{"type":"string","title":"Outfitter Id"}},{"name":"client_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"}},{"name":"stand_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stand Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_HuntHistoryResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/outfitters/{outfitter_id}/stands/usage":{"get":{"tags":["crm"],"summary":"List Stand Usage","operationId":"list_stand_usage_api_v1_pro_outfitters__outfitter_id__stands_usage_get","parameters":[{"name":"outfitter_id","in":"path","required":true,"schema":{"type":"string","title":"Outfitter Id"}},{"name":"stand_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stand Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_StandUsageResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/outfitters/{outfitter_id}/hunt-plans/{plan_id}/complete":{"post":{"tags":["crm"],"summary":"Complete Hunt Plan","operationId":"complete_hunt_plan_api_v1_pro_outfitters__outfitter_id__hunt_plans__plan_id__complete_post","parameters":[{"name":"outfitter_id","in":"path","required":true,"schema":{"type":"string","title":"Outfitter Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/outfitters/{outfitter_id}/analytics/crm":{"get":{"tags":["crm"],"summary":"Crm Analytics","operationId":"crm_analytics_api_v1_pro_outfitters__outfitter_id__analytics_crm_get","parameters":[{"name":"outfitter_id","in":"path","required":true,"schema":{"type":"string","title":"Outfitter Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/client/hunt-history":{"get":{"tags":["crm-client"],"summary":"Client Hunt History","operationId":"client_hunt_history_api_v1_client_hunt_history_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_ClientHuntHistorySafe__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/client/hunt-history/{history_id}":{"get":{"tags":["crm-client"],"summary":"Client Hunt History Detail","operationId":"client_hunt_history_detail_api_v1_client_hunt_history__history_id__get","parameters":[{"name":"history_id","in":"path","required":true,"schema":{"type":"string","title":"History Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ClientHuntHistorySafe_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/crm/dashboard":{"get":{"tags":["crm-alias"],"summary":"Crm Dashboard Alias","operationId":"crm_dashboard_alias_api_v1_crm_dashboard_get","parameters":[{"name":"outfitter_id","in":"query","required":true,"schema":{"type":"string","description":"Outfitter id (path-param equivalent)","title":"Outfitter Id"},"description":"Outfitter id (path-param equivalent)"},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/hunters":{"get":{"tags":["hunters"],"summary":"List Hunters","description":"Roster + per-row hunt aggregates. Inactive hunters hidden by\ndefault — flip ``include_inactive=true`` to surface them.","operationId":"list_hunters_api_v1_hunters_get","parameters":[{"name":"include_inactive","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Inactive"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_OutfitterHunterResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["hunters"],"summary":"Create Hunter","operationId":"create_hunter_api_v1_hunters_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutfitterHunterCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_OutfitterHunterResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/hunters/{hunter_id}":{"get":{"tags":["hunters"],"summary":"Get Hunter","operationId":"get_hunter_api_v1_hunters__hunter_id__get","parameters":[{"name":"hunter_id","in":"path","required":true,"schema":{"type":"string","title":"Hunter Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_OutfitterHunterResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["hunters"],"summary":"Update Hunter","operationId":"update_hunter_api_v1_hunters__hunter_id__patch","parameters":[{"name":"hunter_id","in":"path","required":true,"schema":{"type":"string","title":"Hunter Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutfitterHunterUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_OutfitterHunterResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["hunters"],"summary":"Delete Hunter","operationId":"delete_hunter_api_v1_hunters__hunter_id__delete","parameters":[{"name":"hunter_id","in":"path","required":true,"schema":{"type":"string","title":"Hunter Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/hunts":{"get":{"tags":["hunts"],"summary":"List Hunts","description":"List the active org's hunts.\n\nWLAI-164 (164-5): guide-role callers are narrowed to their own hunts,\nmatching ``GET /sessions`` and the calendar route below. This route\npreviously took no ``user`` dependency at all, so it could not identify\nthe caller and returned EVERY hunt in the org to a guide — the\n``guide_id`` query param was an opt-in filter, never a boundary.","operationId":"list_hunts_api_v1_hunts_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/HuntStatus"},{"type":"null"}],"title":"Status"}},{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Id"}},{"name":"guide_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guide Id"}},{"name":"hunter_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hunter Id"}},{"name":"start_on_or_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start On Or After"}},{"name":"start_on_or_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start On Or Before"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_HuntResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["hunts"],"summary":"Create Hunt","description":"Bulk-create a hunt + its seeded sessions. Per HUNT-002 the\nservice pre-validates session-slot duplicates and surfaces a 409\nvia :class:`WildLensError`; the global exception handler maps\nthat to the JSON envelope.\n\nWLAI-442: ``body.property_id`` is caller-supplied, so the per-property\ngate runs here before the service writes anything. ``editor`` + write\nmatches the other body-property write routes (ml, habitat_pressure,\nlong_range_forecasts) and is exactly what the DEFECT-054 org plane grants\nan outfitter owner/manager — ``owner`` would lock them out of their own\norg's properties. Foreign or nonexistent → 403, never 404. The service\nthen enforces that the property belongs to ``org_id`` and validates the\nhunter / guide / stand ids.","operationId":"create_hunt_api_v1_hunts_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HuntCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_HuntResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/hunts/sessions":{"get":{"tags":["hunts"],"summary":"List Hunts Sessions Alias","operationId":"list_hunts_sessions_alias_api_v1_hunts_sessions_get","parameters":[{"name":"date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Single-day filter (YYYY-MM-DD).","title":"Date"},"description":"Single-day filter (YYYY-MM-DD)."},{"name":"days_ahead","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":365,"minimum":0},{"type":"null"}],"description":"Window from today; on_or_before is set to today + days_ahead.","title":"Days Ahead"},"description":"Window from today; on_or_before is set to today + days_ahead."},{"name":"on_or_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"On Or After"}},{"name":"on_or_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"On Or Before"}},{"name":"guide_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guide Id"}},{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Id"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Informational only; effective org is derived from caller auth.","title":"Organization Id"},"description":"Informational only; effective org is derived from caller auth."},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SessionStatus"},{"type":"null"}],"title":"Status"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_HuntSessionResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/hunts/{hunt_id}":{"get":{"tags":["hunts"],"summary":"Get Hunt","description":"Hunt detail.\n\nWLAI-164 (164-17): same narrowing as the list route. This carried the\nidentical hole — no ``user`` dependency, so any org member could read any\nhunt by id. Fixing only the list would have been worse than useless: a\nguide would not see the hunt in their list but could still fetch it\ndirectly. Out-of-scope hunts 404 (not 403), matching HUNT-004 on\n/sessions.","operationId":"get_hunt_api_v1_hunts__hunt_id__get","parameters":[{"name":"hunt_id","in":"path","required":true,"schema":{"type":"string","title":"Hunt Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_HuntResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["hunts"],"summary":"Update Hunt","operationId":"update_hunt_api_v1_hunts__hunt_id__patch","parameters":[{"name":"hunt_id","in":"path","required":true,"schema":{"type":"string","title":"Hunt Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HuntUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_HuntResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/hunts/{hunt_id}/sessions":{"get":{"tags":["hunts"],"summary":"List Hunt Sessions","description":"Sessions under one hunt.\n\nWLAI-164 (164-17): the narrowing gates the PARENT HUNT — leaving this\nopen while /hunts/{id} 404s would let a guide read the sessions of a hunt\nthey cannot see, which is the same hole one level down. The hunt's own\nsessions are then returned in full; see\n``HuntService.list_sessions_for_hunt`` for why the children are not\nnarrowed as well.","operationId":"list_hunt_sessions_api_v1_hunts__hunt_id__sessions_get","parameters":[{"name":"hunt_id","in":"path","required":true,"schema":{"type":"string","title":"Hunt Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_HuntSessionResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/hunts/{hunt_id}/cancel":{"post":{"tags":["hunts"],"summary":"Cancel Hunt","description":"HUNT-003 cancel cascade. Idempotent — repeat calls return the\nalready-cancelled hunt verbatim. Scheduled sessions cascade to\ncancelled; in-flight / completed sessions are left intact so the\naudit trail survives.","operationId":"cancel_hunt_api_v1_hunts__hunt_id__cancel_post","parameters":[{"name":"hunt_id","in":"path","required":true,"schema":{"type":"string","title":"Hunt Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_HuntResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sessions":{"get":{"tags":["sessions"],"summary":"List Sessions","operationId":"list_sessions_api_v1_sessions_get","parameters":[{"name":"on_or_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"On Or After"}},{"name":"on_or_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"On Or Before"}},{"name":"guide_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guide Id"}},{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SessionStatus"},{"type":"null"}],"title":"Status"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_HuntSessionResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sessions/{session_id}":{"get":{"tags":["sessions"],"summary":"Get Session","operationId":"get_session_api_v1_sessions__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_HuntSessionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["sessions"],"summary":"Update Session","description":"Update a session. Guide-role callers are silently scoped to\ntheir own assignments — a guide PATCHing someone else's session\ngets a 404, not a 403 (HUNT-004).\n\nIntentionally NOT gated on ``require_permission(PERM_WRITE_PROPERTIES)``:\nthe ``PROPERTIES`` permission isn't granted to the ``guide`` role,\nand guides updating their own sessions is the canonical flow. The\nsecurity boundary here is guide-scoping at the service layer, not\nthe property-write permission.\n\nWLAI-443 field allow-list: only owner / manager (plus the founder /\nadmin bypass) may re-point ``stand_id`` / ``guide_id``. Guide- and\nmember-role callers may set ``status`` / ``outcome`` /\n``guide_notes`` only; sending a reassignment field is a 403 and\nwrites nothing. Referential checks (stand on the session's property,\nguide is a guide-capable org member) live in the service.","operationId":"update_session_api_v1_sessions__session_id__patch","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HuntSessionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_HuntSessionUpdateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sessions/{session_id}/briefing":{"post":{"tags":["sessions"],"summary":"Generate Session Briefing","description":"Generate or refresh the cached briefing for a session.\nReturns the (possibly cached) :class:`BriefingResponse` plus a\n``was_cached`` flag and the current ``briefing_version``.\n\nLike ``PATCH /sessions/{id}``, this is not behind\n``require_permission(PERM_WRITE_PROPERTIES)`` so guides can refresh\nbriefings on their own sessions. Guide-scoping at the service\nlayer (HUNT-004) is the security boundary.","operationId":"generate_session_briefing_api_v1_sessions__session_id__briefing_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/_GenerateBriefingBody"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse__GenerateBriefingResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["sessions"],"summary":"Get Session Briefing","description":"Read the cached briefing for a session. 404 when none has been\ngenerated yet (BRIEFING-002).\n\nRead-only counterpart to the POST above: no assembly, no write, no\n``briefing_version`` bump, and deliberately no ``db.commit()``. The\nfrontend previously had to POST on every briefing open because this\nendpoint did not exist, which re-ran inference and produced different\ncopy each time (#306-RL / F11).\n\nSame authorization plane as every other session endpoint — guides are\nnarrowed to their own assignments and see 404, not 403, on anyone\nelse's (HUNT-004).","operationId":"get_session_briefing_api_v1_sessions__session_id__briefing_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse__CachedBriefingResponse_"}}}},"404":{"description":"No briefing has been generated for this session yet, or the session is not visible to the caller. Guide-role callers receive this instead of 403 for sessions they are not assigned to (HUNT-004), so the two cases are deliberately indistinguishable. A STALE briefing is NOT a 404 — it returns 200 with is_fresh=false (RL306-5).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sessions/{session_id}/qr":{"get":{"tags":["sessions"],"summary":"Get Session Qr","description":"Return the QR token + absolute ``/b/{token}`` URL. The token is\nset on session creation by :meth:`HuntSession.__init__`; this\nendpoint is a read-only projection.","operationId":"get_session_qr_api_v1_sessions__session_id__qr_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_QRCodeResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sessions/{session_id}/harvest":{"post":{"tags":["sessions"],"summary":"Log Session Harvest","description":"Phase 5 / Conflict 3 ruling — atomic harvest close-out anchored\nto a hunt session.\n\nCreates the ``HarvestRecord``, links it onto the session, flips\n``session.outcome`` → ``harvest`` and ``session.status`` →\n``completed``, all in a single transaction. Any failure rolls\neverything back — no orphaned records, no half-updated sessions.\n\nGuide scope (HUNT-004): Guides can only log harvests on sessions\nwhere ``guide_id`` matches their profile. A guide hitting\nanother guide's session gets 404, not 403, matching the rest of\nthe sessions surface. Owners / managers / admins / founders see\nevery session in their org per the standard role hierarchy.\n\nThe legacy property/stand endpoint\n(``POST /properties/{id}/stands/{id}/harvests``) is intentionally\nleft untouched — it remains the right surface for Manager-driven\nnon-session harvests.","operationId":"log_session_harvest_api_v1_sessions__session_id__harvest_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionHarvestCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_SessionHarvestResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/b/{qr_token}":{"get":{"tags":["public-briefing"],"summary":"View Public Session","description":"Render the token-only briefing landing. Read-only — no row\nis mutated, no ``briefing_version`` is bumped (the cache update\npath stays on the authenticated POST endpoint).","operationId":"view_public_session_b__qr_token__get","parameters":[{"name":"qr_token","in":"path","required":true,"schema":{"type":"string","title":"Qr Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PublicSessionView_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/share/{token}":{"get":{"tags":["public-share"],"summary":"Get Public Share","operationId":"get_public_share_share__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PublicShareView_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/org/qr-settings":{"get":{"tags":["org-settings"],"summary":"Get Qr Settings","description":"Return the org's QR settings (lazy-creates defaults on first\nread so a brand-new org sees ``qr_auto_generate=true`` /\n``qr_white_label_enabled=false`` without an explicit seed).","operationId":"get_qr_settings_api_v1_org_qr_settings_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_OrgQrSettingsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["org-settings"],"summary":"Update Qr Settings","description":"Patch the org's QR settings. Manager-or-above only.\n\nConflict 6 / Ruling A: ``qr_white_label_enabled`` is accepted\nunconditionally for BETA. The deferred admin contract gate\nlives at :file:`docs/governance/guardrail.md` (\"Deferred gates\")\nand inside :mod:`app.services.org_qr_settings_service` — when the\nSystem Admin surface lands, the gate moves into the service so\nevery PATCH path (including a future admin-impersonation route)\ninherits it.","operationId":"update_qr_settings_api_v1_org_qr_settings_patch","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgQrSettingsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_OrgQrSettingsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/state-harvest-urls":{"get":{"tags":["state-harvest-urls"],"summary":"Get State Harvest Url","description":"Look up the online harvest-reporting URL for a US state.\n\nReturns 404 when no row matches the state code — the frontend's\nHunt Brief renders a muted fallback (\"Online reporting not yet\navailable for {state}\") in that case. ``state`` is normalized to\nupper-case inside the service so ``tx`` and ``TX`` resolve the\nsame row.","operationId":"get_state_harvest_url_api_v1_state_harvest_urls_get","parameters":[{"name":"state","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":10,"description":"US state code","title":"State"},"description":"US state code"},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_StateHarvestUrlResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/outfitters/{outfitter_id}/integrations":{"get":{"tags":["oem-integrations"],"summary":"List Outfitter Integrations","operationId":"list_outfitter_integrations_api_v1_pro_outfitters__outfitter_id__integrations_get","parameters":[{"name":"outfitter_id","in":"path","required":true,"schema":{"type":"string","title":"Outfitter Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict_str__Any___"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/outfitters/{outfitter_id}/integrations/{manufacturer_slug}/request":{"post":{"tags":["oem-integrations"],"summary":"Request Integration","operationId":"request_integration_api_v1_pro_outfitters__outfitter_id__integrations__manufacturer_slug__request_post","parameters":[{"name":"outfitter_id","in":"path","required":true,"schema":{"type":"string","title":"Outfitter Id"}},{"name":"manufacturer_slug","in":"path","required":true,"schema":{"type":"string","title":"Manufacturer Slug"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestIntegrationBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/outfitters/{outfitter_id}/integrations/{manufacturer_slug}/status":{"get":{"tags":["oem-integrations"],"summary":"Integration Status","operationId":"integration_status_api_v1_pro_outfitters__outfitter_id__integrations__manufacturer_slug__status_get","parameters":[{"name":"outfitter_id","in":"path","required":true,"schema":{"type":"string","title":"Outfitter Id"}},{"name":"manufacturer_slug","in":"path","required":true,"schema":{"type":"string","title":"Manufacturer Slug"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pro/outfitters/{outfitter_id}/integrations/{manufacturer_slug}/simulate":{"post":{"tags":["oem-integrations"],"summary":"Simulate Integration Event","operationId":"simulate_integration_event_api_v1_pro_outfitters__outfitter_id__integrations__manufacturer_slug__simulate_post","parameters":[{"name":"outfitter_id","in":"path","required":true,"schema":{"type":"string","title":"Outfitter Id"}},{"name":"manufacturer_slug","in":"path","required":true,"schema":{"type":"string","title":"Manufacturer Slug"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimulateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/integrations":{"get":{"tags":["admin-oem-integrations"],"summary":"Admin List Integrations","operationId":"admin_list_integrations_api_v1_admin_integrations_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict_str__Any___"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/integrations/{integration_id}/activate":{"post":{"tags":["admin-oem-integrations"],"summary":"Admin Activate Integration","operationId":"admin_activate_integration_api_v1_admin_integrations__integration_id__activate_post","parameters":[{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","title":"Integration Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/integrations/{integration_id}/revoke":{"post":{"tags":["admin-oem-integrations"],"summary":"Admin Revoke Integration","operationId":"admin_revoke_integration_api_v1_admin_integrations__integration_id__revoke_post","parameters":[{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","title":"Integration Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/integrations/{integration_id}/simulate-event":{"post":{"tags":["admin-oem-integrations"],"summary":"Admin Simulate Event","operationId":"admin_simulate_event_api_v1_admin_integrations__integration_id__simulate_event_post","parameters":[{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","title":"Integration Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimulateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/integrations/health":{"get":{"tags":["admin-oem-integrations"],"summary":"Admin Health","operationId":"admin_health_api_v1_admin_integrations_health_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/consent":{"get":{"tags":["cookie-consent"],"summary":"Get Consent","operationId":"get_consent_api_v1_consent_get","parameters":[{"name":"X-Session-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Session-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ConsentResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["cookie-consent"],"summary":"Upsert Consent","operationId":"upsert_consent_api_v1_consent_post","parameters":[{"name":"X-Session-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Session-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ConsentResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/consent/summary":{"get":{"tags":["cookie-consent"],"summary":"Admin Summary","operationId":"admin_summary_api_v1_admin_consent_summary_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/privacy/opt-outs":{"get":{"tags":["privacy"],"summary":"Get Opt Outs","operationId":"get_opt_outs_api_v1_privacy_opt_outs_get","parameters":[{"name":"X-Session-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Session-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_OptOutsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["privacy"],"summary":"Upsert Opt Outs","operationId":"upsert_opt_outs_api_v1_privacy_opt_outs_post","parameters":[{"name":"X-Session-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Session-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptOutsUpdateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_OptOutsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/privacy/dsar":{"post":{"tags":["privacy"],"summary":"Submit Dsar","description":"Submit a new rights request.\n\nAuthenticated users: request lands as ``received`` immediately and\nthe 45-day SLA clock starts.\n\nAnonymous users: request lands as ``pending_verification`` and a\nverification token is generated. Email delivery of the token is\nthe router's responsibility — for MVP we log it; a follow-up PR\nwires this to the email service.","operationId":"submit_dsar_api_v1_privacy_dsar_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DsarSubmitBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_DsarSubmitResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["privacy"],"summary":"List My Dsar","description":"List the authenticated user's own requests.\n\nAnonymous callers see an empty list — no way to enumerate requests\nby email alone; that would be a PII-disclosure surface.","operationId":"list_my_dsar_api_v1_privacy_dsar_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_DsarView__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/privacy/dsar/verify":{"post":{"tags":["privacy"],"summary":"Verify Dsar","operationId":"verify_dsar_api_v1_privacy_dsar_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DsarVerifyBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_DsarView_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/usage/events":{"post":{"tags":["usage"],"summary":"Record Event","operationId":"record_event_api_v1_usage_events_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageEventRecordRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_UsageEventRecordResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/usage/summary":{"get":{"tags":["usage"],"summary":"Get Summary","operationId":"get_summary_api_v1_usage_summary_get","parameters":[{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_UsageSummaryResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/usage/properties/{property_id}":{"get":{"tags":["usage"],"summary":"Get Property Usage","operationId":"get_property_usage_api_v1_usage_properties__property_id__get","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Property Id"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_UsagePropertyResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/usage/cost":{"get":{"tags":["usage"],"summary":"Get Cost Summary","operationId":"get_cost_summary_api_v1_usage_cost_get","parameters":[{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_UsageCostResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/usage/me":{"get":{"tags":["usage"],"summary":"Get My Usage","description":"Unified entitlement usage for the caller, dispatched by the active\ncontext (RBAC Phase 1b — org resolved from X-WildLens-Context, not the\ndormant singular column). Response shape unchanged.","operationId":"get_my_usage_api_v1_usage_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_UsageMeResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/hank/ask":{"post":{"tags":["hank"],"summary":"Ask Hank","operationId":"ask_hank_api_v1_hank_ask_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HankAskRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_HankAskResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ACLResponse":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","enum":["property","camera","analysis"],"title":"Kind"},"resource_id":{"type":"string","title":"Resource Id"},"profile_id":{"type":"string","title":"Profile Id"},"permission":{"type":"string","enum":["read","write"],"title":"Permission"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","kind","resource_id","profile_id","permission","created_at"],"title":"ACLResponse","description":"Returned by every ACL CRUD endpoint.\n\n``kind`` carries which table the row lives in so DELETE callers\nknow what they're undoing without re-querying. ``resource_id``\nholds whichever column was the FK ('property_id' / 'camera_id' /\n'analysis_id') flattened into a single payload key."},"AISummaryResponse":{"properties":{"accuracy_7d_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Accuracy 7D Pct"},"accuracy_30d_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Accuracy 30D Pct"},"photos_analyzed_30d":{"type":"integer","title":"Photos Analyzed 30D"},"detections_30d":{"type":"integer","title":"Detections 30D"},"failed_analyses_count":{"type":"integer","title":"Failed Analyses Count"},"median_processing_ms":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Processing Ms"},"total_cost_usd_30d":{"type":"number","title":"Total Cost Usd 30D"},"species_classes":{"type":"integer","title":"Species Classes"}},"type":"object","required":["photos_analyzed_30d","detections_30d","failed_analyses_count","total_cost_usd_30d","species_classes"],"title":"AISummaryResponse"},"APIKeyCreateRequest":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"scopes":{"items":{"type":"string"},"type":"array","maxItems":16,"minItems":1,"title":"Scopes"},"rate_limit_requests_per_minute":{"anyOf":[{"type":"integer","maximum":10000.0,"minimum":1.0},{"type":"null"}],"title":"Rate Limit Requests Per Minute"}},"type":"object","required":["name","scopes"],"title":"APIKeyCreateRequest"},"APIKeyCreatedResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"key":{"type":"string","title":"Key"},"key_prefix":{"type":"string","title":"Key Prefix"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"message":{"type":"string","title":"Message","default":"Save this key now. It won't be shown again — only the prefix is kept on our side."}},"type":"object","required":["id","name","key","key_prefix","scopes"],"title":"APIKeyCreatedResponse","description":"Returned ONCE on creation. Carries the plaintext key plus a\nnudge that this is the only time the user will see it."},"APIKeyListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/APIKeyResponse"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"APIKeyListResponse"},"APIKeyResponse":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"name":{"type":"string","title":"Name"},"key_prefix":{"type":"string","title":"Key Prefix"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"rate_limit_requests_per_minute":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rate Limit Requests Per Minute"},"created_by_profile_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Profile Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"}},"type":"object","required":["id","organization_id","name","key_prefix","scopes","created_at"],"title":"APIKeyResponse","description":"List/detail response — never includes the raw key."},"AccountResolvedEntitlement":{"properties":{"membership_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Membership Class"},"subscription_tier":{"type":"string","title":"Subscription Tier"},"subscription_tier_display_name":{"type":"string","title":"Subscription Tier Display Name"},"entitlements":{"additionalProperties":{"$ref":"#/components/schemas/ResolvedEntitlementItem"},"type":"object","title":"Entitlements"}},"type":"object","required":["membership_class","subscription_tier","subscription_tier_display_name","entitlements"],"title":"AccountResolvedEntitlement","description":"The admin ``resolved_entitlement`` field: what the account resolves to\nright now across all four kinds, after the class overlay. Lets a System Admin\nsee a Homestead-on-free account is free-billing + unlimited without inferring\none from the other."},"AccuracyBlock":{"properties":{"overall_accuracy_pct":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Overall Accuracy Pct"},"overall_precision_pct":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Overall Precision Pct"},"overall_recall_pct":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Overall Recall Pct"},"overall_f1_pct":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Overall F1 Pct"},"benchmark_run_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Benchmark Run At"},"benchmark_dataset_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Benchmark Dataset Size"},"per_species":{"items":{"$ref":"#/components/schemas/SpeciesAccuracyBar"},"type":"array","title":"Per Species"}},"type":"object","title":"AccuracyBlock","description":"Overall + per-species accuracy from the latest 7-day benchmark\nwindow. ``None`` everywhere when no benchmark has been run in the\nwindow (the frontend renders an empty-state card)."},"AccuracyTrendBlock":{"properties":{"data_points":{"items":{"$ref":"#/components/schemas/AccuracyTrendPoint"},"type":"array","title":"Data Points"},"point_count":{"type":"integer","minimum":0.0,"title":"Point Count"},"latest_accuracy_pct":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Latest Accuracy Pct"}},"type":"object","required":["point_count"],"title":"AccuracyTrendBlock","description":"AI accuracy trend over the requested window.\n\n``data_points`` is newest-first. ``latest_accuracy_pct`` is a\nconvenience for the dashboard's headline tile so it doesn't have\nto re-derive it from the points array."},"AccuracyTrendPoint":{"properties":{"run_at":{"type":"string","format":"date-time","title":"Run At"},"accuracy_pct":{"type":"number","maximum":100.0,"minimum":0.0,"title":"Accuracy Pct"},"dataset_size":{"type":"integer","minimum":0.0,"title":"Dataset Size"},"model_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Version"}},"type":"object","required":["run_at","accuracy_pct","dataset_size"],"title":"AccuracyTrendPoint","description":"One ``benchmark_runs`` row projected to (timestamp, accuracy)\nfor the trend chart."},"ActionsNeededSummary":{"properties":{"support_tickets_open":{"type":"integer","title":"Support Tickets Open"},"support_tickets_awaiting_reply":{"type":"integer","title":"Support Tickets Awaiting Reply"},"support_oldest_open_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Support Oldest Open Days"},"dsar_pending":{"type":"integer","title":"Dsar Pending"},"dsar_oldest_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dsar Oldest Days"},"failed_analyses":{"type":"integer","title":"Failed Analyses"},"feature_flags_active":{"type":"integer","title":"Feature Flags Active"},"feature_flags_staged_rollout":{"type":"integer","title":"Feature Flags Staged Rollout"}},"type":"object","required":["support_tickets_open","support_tickets_awaiting_reply","support_oldest_open_days","dsar_pending","dsar_oldest_days","failed_analyses","feature_flags_active","feature_flags_staged_rollout"],"title":"ActionsNeededSummary"},"ActiveSubscriptionRow":{"properties":{"org_id":{"type":"string","title":"Org Id"},"org_name":{"type":"string","title":"Org Name"},"tier":{"type":"string","title":"Tier"},"monthly_amount_usd":{"type":"number","title":"Monthly Amount Usd"},"status":{"type":"string","title":"Status"},"period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Period End"},"stripe_customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Customer Id"},"stripe_subscription_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Subscription Id"}},"type":"object","required":["org_id","org_name","tier","monthly_amount_usd","status"],"title":"ActiveSubscriptionRow"},"ActivityWeatherDay":{"properties":{"date":{"type":"string","title":"Date"},"sighting_count":{"type":"integer","title":"Sighting Count"},"species_breakdown":{"additionalProperties":{"type":"integer"},"type":"object","title":"Species Breakdown"},"temp_high":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temp High"},"temp_low":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temp Low"},"precipitation":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Precipitation"},"wind":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Wind"},"weathercode":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Weathercode"},"conditions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conditions"}},"type":"object","required":["date","sighting_count","species_breakdown"],"title":"ActivityWeatherDay"},"AddMessageRequest":{"properties":{"body":{"type":"string","maxLength":10000,"minLength":1,"title":"Body"}},"type":"object","required":["body"],"title":"AddMessageRequest"},"AddNoteBody":{"properties":{"note":{"type":"string","maxLength":4000,"minLength":1,"title":"Note"}},"type":"object","required":["note"],"title":"AddNoteBody"},"AdminAccountCreateRequest":{"properties":{"account_type":{"type":"string","enum":["outfitter","individual"],"title":"Account Type"},"email":{"type":"string","format":"email","title":"Email"},"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Name"},"organization_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Organization Name","description":"Required when account_type='outfitter'. Service raises ValueError → 400 if missing."}},"type":"object","required":["account_type","email"],"title":"AdminAccountCreateRequest","description":"Body for ``POST /admin/accounts``.\n\nWraps :func:`admin_account_service.create_account`. ``EmailStr``\ncatches the obviously-broken input early; the service still does\nits own normalization (lowercase + strip) before the duplicate\ncheck so callers can rely on canonical storage either way."},"AdminAccountCreateResponse":{"properties":{"profile_id":{"type":"string","title":"Profile Id"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"default_property_id":{"type":"string","title":"Default Property Id"}},"type":"object","required":["profile_id","default_property_id"],"title":"AdminAccountCreateResponse","description":"Returned by ``POST /admin/accounts``.\n\nCarries the IDs of every row :func:`create_account` provisions so\nthe operator UI can deep-link to the new Profile / Organization /\nProperty without a second round-trip."},"AdminAccountDetail":{"properties":{"profile_id":{"type":"string","title":"Profile Id"},"email":{"type":"string","title":"Email"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"subscription_tier":{"type":"string","title":"Subscription Tier"},"subscription_tier_display_name":{"type":"string","title":"Subscription Tier Display Name"},"membership_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Membership Class"},"assignable_tiers":{"items":{"type":"string"},"type":"array","title":"Assignable Tiers","default":[]},"resolved_entitlement":{"anyOf":[{"$ref":"#/components/schemas/AccountResolvedEntitlement"},{"type":"null"}]},"primary_persona":{"type":"string","title":"Primary Persona"},"is_admin":{"type":"boolean","title":"Is Admin"},"is_founder":{"type":"boolean","title":"Is Founder"},"has_supabase_auth":{"type":"boolean","title":"Has Supabase Auth"},"auth_link_status":{"type":"string","enum":["linked","unlinked","unknown"],"title":"Auth Link Status","default":"unknown"},"auth_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth User Id"},"organization":{"anyOf":[{"$ref":"#/components/schemas/AdminAccountOrgSummary"},{"type":"null"}]},"active_session_count":{"type":"integer","title":"Active Session Count"},"revoked_session_count":{"type":"integer","title":"Revoked Session Count"},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["profile_id","email","full_name","subscription_tier","subscription_tier_display_name","primary_persona","is_admin","is_founder","has_supabase_auth","organization","active_session_count","revoked_session_count","last_seen_at","created_at"],"title":"AdminAccountDetail","description":"Returned by ``GET /admin/accounts/{id}``.\n\nSingle-Profile dossier. Cross-references org membership +\nsession counts so the platform-admin UI can render the row\nwithout follow-up fetches."},"AdminAccountOrgSummary":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"}},"type":"object","required":["id","name"],"title":"AdminAccountOrgSummary","description":"Compact org snapshot embedded in the account detail."},"AdminAccountSuspendResponse":{"properties":{"profile_id":{"type":"string","title":"Profile Id"},"sessions_revoked":{"type":"integer","title":"Sessions Revoked"},"suspended_at":{"type":"string","format":"date-time","title":"Suspended At"},"re_login_gap_warning":{"type":"boolean","title":"Re Login Gap Warning","description":"Always True for BETA. Indicates the suspension is session-revocation-only; a re-login can re-establish a session. Post-BETA hardening tracked separately.","default":true}},"type":"object","required":["profile_id","sessions_revoked","suspended_at"],"title":"AdminAccountSuspendResponse","description":"Returned by ``POST /admin/accounts/{id}/suspend``.\n\nConflict 3 ruling (Option B, BETA): suspend = revoke all live\nUserSessions. **There is no schema-level ``suspended_at`` flag**\n— a re-login can re-establish a session. This is acceptable for\nBETA (FREE-tier only). Post-BETA hardening must add\n``Profile.suspended_at`` + gate auth/session establishment on it."},"AdminAiMetricsResponse":{"properties":{"as_of":{"type":"string","format":"date-time","title":"As Of"},"accuracy":{"$ref":"#/components/schemas/AccuracyBlock"},"correction_memory":{"$ref":"#/components/schemas/CorrectionMemoryBlock"},"species_detection":{"$ref":"#/components/schemas/SpeciesDetectionBlock"},"model_version":{"$ref":"#/components/schemas/ModelVersionBlock"}},"type":"object","required":["as_of","accuracy","correction_memory","species_detection","model_version"],"title":"AdminAiMetricsResponse","description":"Top-level response for ``GET /admin/ai/metrics``.\n\n``as_of`` is the request timestamp (UTC). Each block fails soft —\na malformed sub-source returns an empty block, not a 500."},"AdminAuthProvisionRequest":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":8,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["reason"],"title":"AdminAuthProvisionRequest","description":"WLAI-413 — reason is required, same contract as the System Admin grant."},"AdminAuthProvisionResponse":{"properties":{"profile_id":{"type":"string","title":"Profile Id"},"supabase_user_id":{"type":"string","title":"Supabase User Id"},"outcome":{"type":"string","enum":["linked_existing","created_new"],"title":"Outcome"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"must_change_password":{"type":"boolean","title":"Must Change Password"},"audit_log_id":{"type":"string","title":"Audit Log Id"}},"type":"object","required":["profile_id","supabase_user_id","outcome","must_change_password","audit_log_id"],"title":"AdminAuthProvisionResponse","description":"Result of ``POST /admin/accounts/{id}/provision-auth-user``.\n\n``password`` is set only for ``created_new`` and is returned exactly once\nfor out-of-band delivery, like Reset Password. ``linked_existing`` leaves\nthe auth user's password alone, so there is nothing to return."},"AdminBenchmarksResponse":{"properties":{"as_of":{"type":"string","format":"date-time","title":"As Of"},"time_range":{"type":"string","enum":["24h","7d","30d"],"title":"Time Range"},"window_start":{"type":"string","format":"date-time","title":"Window Start"},"sources":{"items":{"type":"string"},"type":"array","title":"Sources"},"accuracy_trend":{"$ref":"#/components/schemas/AccuracyTrendBlock"},"photo_processing":{"$ref":"#/components/schemas/PhotoProcessingBlock"},"api_latency":{"$ref":"#/components/schemas/ApiLatencyBlock"},"storage":{"$ref":"#/components/schemas/StorageBlock"},"camera_fleet":{"$ref":"#/components/schemas/CameraFleetBlock"}},"type":"object","required":["as_of","time_range","window_start","accuracy_trend","photo_processing","api_latency","storage","camera_fleet"],"title":"AdminBenchmarksResponse","description":"Top-level response for ``GET /admin/benchmarks?time_range=...``.\n\n``sources`` lists every provider that returned live data on this\nrequest — ``\"internal\"`` is always present; ``\"cloudwatch\"`` only\nwhen the IAM-backed metrics path is wired (BETA: never)."},"AdminClassChangeRequest":{"properties":{"membership_class":{"anyOf":[{"$ref":"#/components/schemas/MembershipClass"},{"type":"null"}]},"subscription_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Tier"},"reason":{"type":"string","maxLength":2000,"minLength":1,"title":"Reason"},"confirmation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confirmation"}},"additionalProperties":false,"type":"object","required":["reason"],"title":"AdminClassChangeRequest","description":"Body for ``POST /admin/accounts/{id}/class`` (BETA Tier Spec §7/§10).\n\n``extra=\"forbid\"`` — no mass-assignment: only these four fields are writable,\nand neither the actor nor any timestamp is ever taken from the body (§10.4).\n\n``membership_class`` and ``subscription_tier`` are BOTH optional; at least one\nmust be present (enforced in the router — both omitted is a no-op). An omitted\nfield is left unchanged; a field explicitly set to ``null`` is a deliberate\nchange. The router distinguishes the two via ``model_fields_set`` — which is\nwhy the defaults here are ``None`` yet ``membership_class=null`` still means\n\"clear the overlay\", not \"leave unchanged\".\n\n``confirmation`` echoes the required token for a destructive reduction (overlay\nclear or tier downgrade) — the TARGET ACCOUNT'S EMAIL (Finding 2); it is ignored\nfor non-destructive changes."},"AdminClassChangeResponse":{"properties":{"account_id":{"type":"string","title":"Account Id"},"change_id":{"type":"string","title":"Change Id"},"from_class":{"anyOf":[{"$ref":"#/components/schemas/MembershipClass"},{"type":"null"}]},"to_class":{"anyOf":[{"$ref":"#/components/schemas/MembershipClass"},{"type":"null"}]},"from_tier":{"type":"string","title":"From Tier"},"to_tier":{"type":"string","title":"To Tier"},"reason":{"type":"string","title":"Reason"},"actor_id":{"type":"string","title":"Actor Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["account_id","change_id","from_class","to_class","from_tier","to_tier","reason","actor_id","created_at"],"title":"AdminClassChangeResponse","description":"Echo of the applied transition + the audit row id, so the admin UI can\nrender exactly what changed without a follow-up read."},"AdminClassHistoryRow":{"properties":{"change_id":{"type":"string","title":"Change Id"},"from_class":{"anyOf":[{"$ref":"#/components/schemas/MembershipClass"},{"type":"null"}]},"to_class":{"anyOf":[{"$ref":"#/components/schemas/MembershipClass"},{"type":"null"}]},"from_tier":{"type":"string","title":"From Tier"},"to_tier":{"type":"string","title":"To Tier"},"reason":{"type":"string","title":"Reason"},"actor_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Id"},"actor_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Email"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["change_id","from_class","to_class","from_tier","to_tier","reason","actor_id","actor_email","created_at"],"title":"AdminClassHistoryRow","description":"One immutable membership-class transition (BETA Tier Spec §8.1 read).\n\n``actor_id`` / ``actor_email`` are null only when the actor was severed by a\nDSAR deletion (``ON DELETE SET NULL``) — the record of *what happened*\nsurvives the personal linkage (never-silently-discard). ``from_class`` /\n``to_class`` null are meaningful (first assignment / overlay clear)."},"AdminErrorStatsResponse":{"properties":{"date_from":{"type":"string","format":"date-time","title":"Date From"},"date_to":{"type":"string","format":"date-time","title":"Date To"},"photos_failed_analysis":{"type":"integer","title":"Photos Failed Analysis"},"batches_failed_ingest":{"type":"integer","title":"Batches Failed Ingest"},"reports_failed_generation":{"type":"integer","title":"Reports Failed Generation"},"total_analyses_in_window":{"type":"integer","title":"Total Analyses In Window"}},"type":"object","required":["date_from","date_to","photos_failed_analysis","batches_failed_ingest","reports_failed_generation","total_analyses_in_window"],"title":"AdminErrorStatsResponse"},"AdminGlobalUsageResponse":{"properties":{"date_from":{"type":"string","format":"date-time","title":"Date From"},"date_to":{"type":"string","format":"date-time","title":"Date To"},"total_events":{"type":"integer","title":"Total Events"},"events_by_type":{"additionalProperties":{"type":"integer"},"type":"object","title":"Events By Type"},"total_photos":{"type":"integer","title":"Total Photos"},"processed_photos":{"type":"integer","title":"Processed Photos"},"analysis_cost_usd":{"type":"number","title":"Analysis Cost Usd"},"storage_cost_usd":{"type":"number","title":"Storage Cost Usd"},"total_cost_usd":{"type":"number","title":"Total Cost Usd"},"total_batches":{"type":"integer","title":"Total Batches"},"completed_batches":{"type":"integer","title":"Completed Batches"},"failed_batches":{"type":"integer","title":"Failed Batches"},"outfitters_engaged":{"type":"integer","title":"Outfitters Engaged"},"properties_engaged":{"type":"integer","title":"Properties Engaged"}},"type":"object","required":["date_from","date_to","total_events","events_by_type","total_photos","processed_photos","analysis_cost_usd","storage_cost_usd","total_cost_usd","total_batches","completed_batches","failed_batches","outfitters_engaged","properties_engaged"],"title":"AdminGlobalUsageResponse"},"AdminIngestPerformanceResponse":{"properties":{"date_from":{"type":"string","format":"date-time","title":"Date From"},"date_to":{"type":"string","format":"date-time","title":"Date To"},"total_batches":{"type":"integer","title":"Total Batches"},"completed_batches":{"type":"integer","title":"Completed Batches"},"failed_batches":{"type":"integer","title":"Failed Batches"},"partial_batches":{"type":"integer","title":"Partial Batches"},"avg_size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Avg Size Bytes"},"avg_files_per_batch":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Files Per Batch"},"failure_rate":{"type":"number","title":"Failure Rate"}},"type":"object","required":["date_from","date_to","total_batches","completed_batches","failed_batches","partial_batches","failure_rate"],"title":"AdminIngestPerformanceResponse"},"AdminOnboardingFunnelResponse":{"properties":{"total_outfitters":{"type":"integer","title":"Total Outfitters"},"step_profile_completed":{"type":"integer","title":"Step Profile Completed"},"step_property_completed":{"type":"integer","title":"Step Property Completed"},"step_cameras_completed":{"type":"integer","title":"Step Cameras Completed"},"step_branding_completed":{"type":"integer","title":"Step Branding Completed"},"step_team_completed":{"type":"integer","title":"Step Team Completed"},"completed_full":{"type":"integer","title":"Completed Full"},"step_profile_pct":{"type":"number","title":"Step Profile Pct"},"step_property_pct":{"type":"number","title":"Step Property Pct"},"step_cameras_pct":{"type":"number","title":"Step Cameras Pct"},"step_branding_pct":{"type":"number","title":"Step Branding Pct"},"step_team_pct":{"type":"number","title":"Step Team Pct"},"completed_full_pct":{"type":"number","title":"Completed Full Pct"}},"type":"object","required":["total_outfitters","step_profile_completed","step_property_completed","step_cameras_completed","step_branding_completed","step_team_completed","completed_full","step_profile_pct","step_property_pct","step_cameras_pct","step_branding_pct","step_team_pct","completed_full_pct"],"title":"AdminOnboardingFunnelResponse"},"AdminOrgDetailResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"tier":{"type":"string","title":"Tier"},"status":{"type":"string","title":"Status"},"owner_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Email"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"seats":{"additionalProperties":{"type":"integer"},"type":"object","title":"Seats"},"members":{"items":{"$ref":"#/components/schemas/app__schemas__org_settings__MemberResponse"},"type":"array","title":"Members"},"properties":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Properties"},"billing":{"additionalProperties":true,"type":"object","title":"Billing"}},"type":"object","required":["id","name","tier","status","created_at","seats","members","properties","billing"],"title":"AdminOrgDetailResponse","description":"GET /api/v1/admin/organizations/{id}.\n\n``seats``    keys: staff_seats_used, staff_seats_purchased,\n                   client_seats_used, client_seats_purchased\n``properties`` items: {id, name, state, cameras_count, photos_count}\n``billing``  keys: tier, status, current_period_end, cancel_at_period_end"},"AdminOutfitterUsageResponse":{"properties":{"outfitters":{"items":{"$ref":"#/components/schemas/AdminOutfitterUsageRow"},"type":"array","title":"Outfitters"}},"type":"object","required":["outfitters"],"title":"AdminOutfitterUsageResponse"},"AdminOutfitterUsageRow":{"properties":{"profile_id":{"type":"string","title":"Profile Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"},"photos":{"type":"integer","title":"Photos"},"analysis_cost_usd":{"type":"number","title":"Analysis Cost Usd"},"storage_cost_usd":{"type":"number","title":"Storage Cost Usd"},"total_cost_usd":{"type":"number","title":"Total Cost Usd"},"events":{"type":"integer","title":"Events"},"active_properties":{"type":"integer","title":"Active Properties"}},"type":"object","required":["profile_id","photos","analysis_cost_usd","storage_cost_usd","total_cost_usd","events","active_properties"],"title":"AdminOutfitterUsageRow"},"AdminOverrideRequest":{"properties":{"profile_id":{"type":"string","title":"Profile Id"},"action":{"type":"string","enum":["extend","grant"],"title":"Action"},"tier":{"$ref":"#/components/schemas/SubscriptionTier"},"days":{"type":"integer","title":"Days"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["profile_id","action","tier","days","reason"],"title":"AdminOverrideRequest"},"AdminOverrideResponse":{"properties":{"profile_id":{"type":"string","title":"Profile Id"},"new_period_end":{"type":"string","format":"date-time","title":"New Period End"},"tier":{"type":"string","title":"Tier"},"message":{"type":"string","title":"Message"}},"type":"object","required":["profile_id","new_period_end","tier","message"],"title":"AdminOverrideResponse"},"AdminPasswordWriteRequest":{"properties":{"password":{"anyOf":[{"type":"string","maxLength":128,"minLength":8},{"type":"null"}],"title":"Password","description":"Optional admin-supplied password. Leave null to auto-generate a secure password."}},"type":"object","title":"AdminPasswordWriteRequest","description":"Body for ``POST /admin/users/{user_id}/reset-password`` and\n``POST /admin/users/{user_id}/set-temp-password``.\n\n``password`` is optional. When omitted, the service mints a\ncryptographically-random password and returns it in the\nresponse. When provided, it must clear the minimum-length\ncheck; composition rules are otherwise the operator's call."},"AdminPasswordWriteResponse":{"properties":{"profile_id":{"type":"string","title":"Profile Id"},"supabase_user_id":{"type":"string","title":"Supabase User Id"},"password":{"type":"string","title":"Password"},"must_change_password":{"type":"boolean","title":"Must Change Password"},"generated":{"type":"boolean","title":"Generated"}},"type":"object","required":["profile_id","supabase_user_id","password","must_change_password","generated"],"title":"AdminPasswordWriteResponse","description":"Returned by both reset and set-temp-password endpoints.\n\n``password`` is included unconditionally and intentionally —\nthis is the *only* moment the operator can see the value, and\nthe contract is that they hand it to the user out-of-band. It\nis never persisted plaintext anywhere."},"AdminPropertyUsageResponse":{"properties":{"properties":{"items":{"$ref":"#/components/schemas/AdminPropertyUsageRow"},"type":"array","title":"Properties"}},"type":"object","required":["properties"],"title":"AdminPropertyUsageResponse"},"AdminPropertyUsageRow":{"properties":{"property_id":{"type":"string","title":"Property Id"},"property_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Name"},"owner_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Id"},"photos":{"type":"integer","title":"Photos"},"analysis_cost_usd":{"type":"number","title":"Analysis Cost Usd"},"storage_cost_usd":{"type":"number","title":"Storage Cost Usd"},"total_cost_usd":{"type":"number","title":"Total Cost Usd"},"batches":{"type":"integer","title":"Batches"}},"type":"object","required":["property_id","photos","analysis_cost_usd","storage_cost_usd","total_cost_usd","batches"],"title":"AdminPropertyUsageRow"},"AdminRecipientRow":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"is_admin":{"type":"boolean","title":"Is Admin"}},"type":"object","required":["id","email","is_admin"],"title":"AdminRecipientRow","description":"A platform-admin profile eligible to receive alerts — the\ncandidate recipients for the Alert Routing page."},"AdminTimeseriesPoint":{"properties":{"day":{"type":"string","title":"Day"},"events":{"type":"integer","title":"Events"},"photos":{"type":"integer","title":"Photos"},"analysis_cost_usd":{"type":"number","title":"Analysis Cost Usd"},"storage_cost_usd":{"type":"number","title":"Storage Cost Usd"}},"type":"object","required":["day","events","photos","analysis_cost_usd","storage_cost_usd"],"title":"AdminTimeseriesPoint"},"AdminTimeseriesResponse":{"properties":{"points":{"items":{"$ref":"#/components/schemas/AdminTimeseriesPoint"},"type":"array","title":"Points"}},"type":"object","required":["points"],"title":"AdminTimeseriesResponse"},"AdminUserRow":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"subscription_tier":{"type":"string","title":"Subscription Tier"},"billing_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Type"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"current_period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Current Period End"},"expired_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expired At"},"data_retention_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Data Retention Until"},"cancel_at_period_end":{"type":"boolean","title":"Cancel At Period End","default":false},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"organization_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Name"}},"type":"object","required":["id","email","full_name","subscription_tier","billing_type","status","current_period_end","expired_at","data_retention_until","last_seen_at","created_at"],"title":"AdminUserRow"},"AgeClass":{"type":"string","enum":["fawn","yearling","young","mature","old","unknown"],"title":"AgeClass"},"AlertChannelConfigResponse":{"properties":{"id":{"type":"string","title":"Id"},"channel_type":{"type":"string","title":"Channel Type"},"label":{"type":"string","title":"Label"},"destination":{"type":"string","title":"Destination"},"enabled":{"type":"boolean","title":"Enabled"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","channel_type","label","destination","enabled","created_at","updated_at"],"title":"AlertChannelConfigResponse"},"AlertChannelConfigUpdate":{"properties":{"destination":{"type":"string","title":"Destination"},"enabled":{"type":"boolean","title":"Enabled"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","required":["destination","enabled"],"title":"AlertChannelConfigUpdate","description":"PATCH body for ``/admin/alerts/channels/{channel_type}``.\n\n``label=None`` leaves the existing label unchanged; ``destination`` and\n``enabled`` are required (the admin UI posts both on every save)."},"AlertListResponse":{"properties":{"alerts":{"items":{"$ref":"#/components/schemas/AlertResponse"},"type":"array","title":"Alerts"}},"type":"object","required":["alerts"],"title":"AlertListResponse"},"AlertPreferenceResponse":{"properties":{"id":{"type":"string","title":"Id"},"admin_id":{"type":"string","title":"Admin Id"},"preferences":{"additionalProperties":true,"type":"object","title":"Preferences"},"global_enabled":{"type":"boolean","title":"Global Enabled"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","admin_id","global_enabled","updated_at"],"title":"AlertPreferenceResponse"},"AlertPreferenceUpdate":{"properties":{"global_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Global Enabled"},"preferences":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Preferences"}},"type":"object","title":"AlertPreferenceUpdate","description":"PATCH body for ``PATCH /api/v1/admin/alerts/preferences/me``.\n\n``preferences=None`` means leave the JSONB alone (matches the\n``None = leave alone, {} = clear`` semantic used in\n:class:`HarvestRecordUpdate.photo_urls`). Empty dict explicitly\nclears all category routing — the admin will receive nothing\n(still bound by ``global_enabled``)."},"AlertResponse":{"properties":{"id":{"type":"string","title":"Id"},"profile_id":{"type":"string","title":"Profile Id"},"property_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Id"},"property_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Name"},"species_taxon_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species Taxon Id"},"species_canonical_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species Canonical Name"},"stand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stand Id"},"stand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stand Name"},"alert_type":{"type":"string","title":"Alert Type"},"severity":{"type":"string","title":"Severity"},"title":{"type":"string","title":"Title"},"message":{"type":"string","title":"Message"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"delivery_channels":{"items":{"type":"string"},"type":"array","title":"Delivery Channels"},"triggered_at":{"type":"string","format":"date-time","title":"Triggered At"},"acknowledged_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Acknowledged At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","profile_id","property_id","species_taxon_id","stand_id","alert_type","severity","title","message","metadata","delivery_channels","triggered_at","acknowledged_at","created_at"],"title":"AlertResponse"},"AlertThresholdResponse":{"properties":{"id":{"type":"string","title":"Id"},"metric_key":{"type":"string","title":"Metric Key"},"warning_value":{"type":"string","title":"Warning Value"},"critical_value":{"type":"string","title":"Critical Value"},"unit":{"type":"string","title":"Unit"},"window_hours":{"type":"integer","title":"Window Hours"},"updated_by_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By Id"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","metric_key","warning_value","critical_value","unit","window_hours","updated_at"],"title":"AlertThresholdResponse"},"AlertThresholdUpdate":{"properties":{"warning_value":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Warning Value"},"critical_value":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Critical Value"},"window_hours":{"type":"integer","maximum":720.0,"minimum":1.0,"title":"Window Hours"}},"type":"object","required":["warning_value","critical_value","window_hours"],"title":"AlertThresholdUpdate","description":"PATCH body for ``PATCH /api/v1/admin/health/thresholds/{key}``\nand ``PATCH /api/v1/admin/alerts/thresholds``."},"AnalysisResponse":{"properties":{"id":{"type":"string","title":"Id"},"photo_id":{"type":"string","title":"Photo Id"},"property_id":{"type":"string","title":"Property Id"},"model_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Version"},"processing_mode":{"$ref":"#/components/schemas/ProcessingMode"},"species":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Species"},"primary_species":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Species"},"species_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Species Count"},"confidence_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence Score"},"corrected_species":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Corrected Species"},"corrected_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Corrected By"},"corrected_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Corrected At"},"correction_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Correction Notes"},"behavior":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Behavior"},"sex":{"anyOf":[{"$ref":"#/components/schemas/Sex"},{"type":"null"}]},"age_class":{"anyOf":[{"$ref":"#/components/schemas/AgeClass"},{"type":"null"}]},"antler_points":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Antler Points"},"antler_score_estimate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Antler Score Estimate"},"body_condition":{"anyOf":[{"$ref":"#/components/schemas/BodyCondition"},{"type":"null"}]},"subject_orientation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Orientation"},"facing_bearing":{"anyOf":[{"$ref":"#/components/schemas/CameraHeading"},{"type":"null"}]},"time_of_day":{"anyOf":[{"$ref":"#/components/schemas/TimeOfDay"},{"type":"null"}]},"weather_conditions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weather Conditions"},"habitat_observations":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Habitat Observations"},"ai_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Notes"},"individuals":{"anyOf":[{"items":{"$ref":"#/components/schemas/IndividualResult"},"type":"array"},{"type":"null"}],"title":"Individuals"},"overlay":{"anyOf":[{"$ref":"#/components/schemas/OverlayResult"},{"type":"null"}]},"overlay_sources":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Overlay Sources"},"processing_time_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Processing Time Ms"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","photo_id","property_id","model_version","processing_mode","species","primary_species","species_count","confidence_score","behavior","sex","age_class","antler_points","antler_score_estimate","body_condition","time_of_day","weather_conditions","habitat_observations","ai_notes","individuals","processing_time_ms","created_at"],"title":"AnalysisResponse"},"AnalysisResultResponse":{"properties":{"id":{"type":"string","title":"Id"},"photo_id":{"type":"string","title":"Photo Id"},"model_version":{"type":"string","title":"Model Version"},"primary_species":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Species"},"primary_species_confidence":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Primary Species Confidence"},"behaviors":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Behaviors"},"raw_labels":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Raw Labels"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","photo_id","model_version","created_at","updated_at"],"title":"AnalysisResultResponse","description":"Shape returned by ``GET /analysis/photo/{photo_id}`` and\nembedded in gallery responses (deferred to a follow-up).\n\n``primary_species_confidence`` is in ``[0, 1]`` — the UI\nmultiplies by 100 to display \"92%\". ``None`` is rendered as\n\"Unknown\" in the panel."},"AnalysisStatus":{"type":"string","enum":["pending","processing","completed","failed","skipped"],"title":"AnalysisStatus"},"AnalysisUpdate":{"properties":{"primary_species":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Species"},"species_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Species Count"},"sex":{"anyOf":[{"$ref":"#/components/schemas/Sex"},{"type":"null"}]},"antler_points":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Antler Points"},"behavior":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Behavior"},"ai_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Notes"}},"type":"object","title":"AnalysisUpdate","description":"User correction of AI results."},"AnimalCreate":{"properties":{"species":{"type":"string","maxLength":100,"title":"Species"},"nickname":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Nickname"},"sex":{"anyOf":[{"$ref":"#/components/schemas/Sex"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"thumbnail_photo_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Photo Id"}},"type":"object","required":["species"],"title":"AnimalCreate"},"AnimalResponse":{"properties":{"id":{"type":"string","title":"Id"},"property_id":{"type":"string","title":"Property Id"},"nickname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nickname"},"species":{"type":"string","title":"Species"},"sex":{"anyOf":[{"$ref":"#/components/schemas/Sex"},{"type":"null"}]},"first_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Seen At"},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At"},"sighting_count":{"type":"integer","title":"Sighting Count"},"estimated_antler_score":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Estimated Antler Score"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"thumbnail_photo_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Photo Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","property_id","nickname","species","sex","first_seen_at","last_seen_at","sighting_count","estimated_antler_score","notes","thumbnail_photo_id","created_at"],"title":"AnimalResponse"},"AnimalUpdate":{"properties":{"nickname":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Nickname"},"sex":{"anyOf":[{"$ref":"#/components/schemas/Sex"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"estimated_antler_score":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Estimated Antler Score"},"thumbnail_photo_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Photo Id"}},"type":"object","title":"AnimalUpdate"},"AntlerDistribution":{"properties":{"antler_points":{"type":"integer","title":"Antler Points"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["antler_points","count"],"title":"AntlerDistribution"},"AntlerEstimate":{"properties":{"estimate_type":{"type":"string","title":"Estimate Type","default":"ai_gross"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"},"points":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Points"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"disclaimer":{"type":"string","title":"Disclaimer","default":"AI visual estimate from a single photo — not a formal Boone & Crockett score."}},"type":"object","title":"AntlerEstimate","description":"AI antler estimate for the detail panel (Gallery B5) — surfaced ONLY when\nthe analysis produced one, and clearly labeled as an estimate.\n\nThis is NOT a formal Boone & Crockett green score: it's a single-photo visual\nguess of the GROSS score range. Formal measured B&C (typical/non-typical frame,\ntine/beam/circumference/inside-spread capture, symmetry deductions, net\ncomputation) is verified NOT-BUILT and tracked as separate backlog. ``confidence``\nis always null — the AI emits no per-estimate confidence today."},"ApiHealthResponse":{"properties":{"as_of":{"type":"string","format":"date-time","title":"As Of"},"total_routes":{"type":"integer","minimum":0.0,"title":"Total Routes"},"method_breakdown":{"additionalProperties":{"type":"integer"},"type":"object","title":"Method Breakdown"},"routers":{"items":{"$ref":"#/components/schemas/RouterSummary"},"type":"array","title":"Routers"}},"type":"object","required":["as_of","total_routes"],"title":"ApiHealthResponse","description":"``GET /admin/dev/api-health`` — registered-route inventory.\n\nConflict 8 ruling: sub-second snapshot of FastAPI's route table.\nDistinct from ``/admin/health/metrics`` (rich CloudWatch/Sentry/DB\nrollup) and the bare ``/health`` + ``/ready`` liveness probes —\nthis is a dev-tool view (\"what's registered, broken down by\nrouter?\") not a health check."},"ApiKeyResponse":{"properties":{"api_key":{"type":"string","title":"Api Key"},"message":{"type":"string","title":"Message","default":"Store this key securely. It will not be shown again."}},"type":"object","required":["api_key"],"title":"ApiKeyResponse"},"ApiLatencyBlock":{"properties":{"p50_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"P50 Ms"},"p95_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"P95 Ms"},"p99_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"P99 Ms"}},"type":"object","title":"ApiLatencyBlock","description":"API response latency.\n\nBETA: all fields are CloudWatch-bound and stubbed."},"ApiResponse":{"properties":{"data":{"anyOf":[{},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse"},"ApiResponse_ACLResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/ACLResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[ACLResponse]"},"ApiResponse_AISummaryResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AISummaryResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AISummaryResponse]"},"ApiResponse_APIKeyCreatedResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/APIKeyCreatedResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[APIKeyCreatedResponse]"},"ApiResponse_APIKeyListResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/APIKeyListResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[APIKeyListResponse]"},"ApiResponse_AdminAccountCreateResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AdminAccountCreateResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AdminAccountCreateResponse]"},"ApiResponse_AdminAccountDetail_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AdminAccountDetail"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AdminAccountDetail]"},"ApiResponse_AdminAccountSuspendResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AdminAccountSuspendResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AdminAccountSuspendResponse]"},"ApiResponse_AdminAiMetricsResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AdminAiMetricsResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AdminAiMetricsResponse]"},"ApiResponse_AdminAuthProvisionResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AdminAuthProvisionResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AdminAuthProvisionResponse]"},"ApiResponse_AdminBenchmarksResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AdminBenchmarksResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AdminBenchmarksResponse]"},"ApiResponse_AdminClassChangeResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AdminClassChangeResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AdminClassChangeResponse]"},"ApiResponse_AdminErrorStatsResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AdminErrorStatsResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AdminErrorStatsResponse]"},"ApiResponse_AdminGlobalUsageResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AdminGlobalUsageResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AdminGlobalUsageResponse]"},"ApiResponse_AdminIngestPerformanceResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AdminIngestPerformanceResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AdminIngestPerformanceResponse]"},"ApiResponse_AdminOnboardingFunnelResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AdminOnboardingFunnelResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AdminOnboardingFunnelResponse]"},"ApiResponse_AdminOrgDetailResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AdminOrgDetailResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AdminOrgDetailResponse]"},"ApiResponse_AdminOutfitterUsageResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AdminOutfitterUsageResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AdminOutfitterUsageResponse]"},"ApiResponse_AdminOverrideResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AdminOverrideResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AdminOverrideResponse]"},"ApiResponse_AdminPasswordWriteResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AdminPasswordWriteResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AdminPasswordWriteResponse]"},"ApiResponse_AdminPropertyUsageResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AdminPropertyUsageResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AdminPropertyUsageResponse]"},"ApiResponse_AdminTimeseriesResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AdminTimeseriesResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AdminTimeseriesResponse]"},"ApiResponse_AlertChannelConfigResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AlertChannelConfigResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AlertChannelConfigResponse]"},"ApiResponse_AlertListResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AlertListResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AlertListResponse]"},"ApiResponse_AlertPreferenceResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AlertPreferenceResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AlertPreferenceResponse]"},"ApiResponse_AlertResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AlertResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AlertResponse]"},"ApiResponse_AlertThresholdResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AlertThresholdResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AlertThresholdResponse]"},"ApiResponse_AnalysisResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AnalysisResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AnalysisResponse]"},"ApiResponse_AnimalResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AnimalResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AnimalResponse]"},"ApiResponse_ApiHealthResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/ApiHealthResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[ApiHealthResponse]"},"ApiResponse_ApiKeyResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/ApiKeyResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[ApiKeyResponse]"},"ApiResponse_AssetResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AssetResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AssetResponse]"},"ApiResponse_AssignmentClearResult_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AssignmentClearResult"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AssignmentClearResult]"},"ApiResponse_AuditLogResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AuditLogResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AuditLogResponse]"},"ApiResponse_AutomationConfigResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AutomationConfigResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AutomationConfigResponse]"},"ApiResponse_AutomationHuntPlanListResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AutomationHuntPlanListResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AutomationHuntPlanListResponse]"},"ApiResponse_AutomationReportListResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AutomationReportListResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AutomationReportListResponse]"},"ApiResponse_AutomationRunLogResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AutomationRunLogResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AutomationRunLogResponse]"},"ApiResponse_AutomationRunNowResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AutomationRunNowResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[AutomationRunNowResponse]"},"ApiResponse_BenchmarkRunResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/BenchmarkRunResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[BenchmarkRunResponse]"},"ApiResponse_BenchmarkSummaryResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/BenchmarkSummaryResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[BenchmarkSummaryResponse]"},"ApiResponse_BestWindowResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/BestWindowResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[BestWindowResponse]"},"ApiResponse_BillingStateResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/BillingStateResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[BillingStateResponse]"},"ApiResponse_BillingSummaryResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/BillingSummaryResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[BillingSummaryResponse]"},"ApiResponse_BoundaryResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/BoundaryResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[BoundaryResponse]"},"ApiResponse_BrandingResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/BrandingResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[BrandingResponse]"},"ApiResponse_BroadcastResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/BroadcastResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[BroadcastResponse]"},"ApiResponse_BulkCameraResult_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/BulkCameraResult"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[BulkCameraResult]"},"ApiResponse_BulkImportResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/BulkImportResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[BulkImportResponse]"},"ApiResponse_BulkPhotoReassignResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/BulkPhotoReassignResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[BulkPhotoReassignResponse]"},"ApiResponse_CacheClearResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CacheClearResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[CacheClearResponse]"},"ApiResponse_CachesResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CachesResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[CachesResponse]"},"ApiResponse_CalibrationPhotosResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CalibrationPhotosResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[CalibrationPhotosResponse]"},"ApiResponse_CalibrationResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CalibrationResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[CalibrationResponse]"},"ApiResponse_CalibrationSummary_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CalibrationSummary"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[CalibrationSummary]"},"ApiResponse_CameraMatrixResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CameraMatrixResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[CameraMatrixResponse]"},"ApiResponse_CameraPlacementResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CameraPlacementResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[CameraPlacementResponse]"},"ApiResponse_CameraPortalResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CameraPortalResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[CameraPortalResponse]"},"ApiResponse_CameraResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CameraResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[CameraResponse]"},"ApiResponse_CameraStats_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CameraStats"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[CameraStats]"},"ApiResponse_CaseStudyCreateResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CaseStudyCreateResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[CaseStudyCreateResponse]"},"ApiResponse_CaseStudyEntry_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CaseStudyEntry"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[CaseStudyEntry]"},"ApiResponse_CaseStudyListResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CaseStudyListResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[CaseStudyListResponse]"},"ApiResponse_ClearResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/ClearResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[ClearResponse]"},"ApiResponse_ClientHuntHistorySafe_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/ClientHuntHistorySafe"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[ClientHuntHistorySafe]"},"ApiResponse_ClientResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/ClientResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[ClientResponse]"},"ApiResponse_CompleteSetupResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CompleteSetupResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[CompleteSetupResponse]"},"ApiResponse_CompleteZipUploadResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CompleteZipUploadResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[CompleteZipUploadResponse]"},"ApiResponse_ConsentResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/ConsentResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[ConsentResponse]"},"ApiResponse_CorrectionListResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CorrectionListResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[CorrectionListResponse]"},"ApiResponse_CorrectionReviewBatchResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CorrectionReviewBatchResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[CorrectionReviewBatchResponse]"},"ApiResponse_CorrectionReviewResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CorrectionReviewResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[CorrectionReviewResponse]"},"ApiResponse_CorridorResponsePro_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CorridorResponsePro"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[CorridorResponsePro]"},"ApiResponse_CorridorResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CorridorResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[CorridorResponse]"},"ApiResponse_CorridorSummary_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CorridorSummary"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[CorridorSummary]"},"ApiResponse_CreateAccountResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CreateAccountResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[CreateAccountResponse]"},"ApiResponse_CreateBillingCustomerResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CreateBillingCustomerResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[CreateBillingCustomerResponse]"},"ApiResponse_CreateBillingSubscriptionResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CreateBillingSubscriptionResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[CreateBillingSubscriptionResponse]"},"ApiResponse_CreateInviteResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CreateInviteResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[CreateInviteResponse]"},"ApiResponse_CreateTeamMemberResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CreateTeamMemberResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[CreateTeamMemberResponse]"},"ApiResponse_CsvIngestResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CsvIngestResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[CsvIngestResponse]"},"ApiResponse_CustomDomainResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CustomDomainResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[CustomDomainResponse]"},"ApiResponse_DashboardSummaryResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/DashboardSummaryResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[DashboardSummaryResponse]"},"ApiResponse_DeployBannerResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/DeployBannerResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[DeployBannerResponse]"},"ApiResponse_DesktopUploadInitResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/DesktopUploadInitResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[DesktopUploadInitResponse]"},"ApiResponse_DeviceGroupResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/DeviceGroupResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[DeviceGroupResponse]"},"ApiResponse_DsarSubmitResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/DsarSubmitResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[DsarSubmitResponse]"},"ApiResponse_DsarView_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/DsarView"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[DsarView]"},"ApiResponse_EcosystemStatsResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/EcosystemStatsResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[EcosystemStatsResponse]"},"ApiResponse_EmailDiagnosticsResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/EmailDiagnosticsResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[EmailDiagnosticsResponse]"},"ApiResponse_EvaluateResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/EvaluateResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[EvaluateResponse]"},"ApiResponse_FailedAnalysisListResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/FailedAnalysisListResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[FailedAnalysisListResponse]"},"ApiResponse_GPSImportSummary_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/GPSImportSummary"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[GPSImportSummary]"},"ApiResponse_GenerateResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/GenerateResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[GenerateResponse]"},"ApiResponse_HankAskResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/HankAskResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[HankAskResponse]"},"ApiResponse_HarvestRecordResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/HarvestRecordResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[HarvestRecordResponse]"},"ApiResponse_HarvestReport_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/HarvestReport"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[HarvestReport]"},"ApiResponse_HazardMutationResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/HazardMutationResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[HazardMutationResponse]"},"ApiResponse_HealthMetricsResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/HealthMetricsResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[HealthMetricsResponse]"},"ApiResponse_HeatmapFlatResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/HeatmapFlatResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[HeatmapFlatResponse]"},"ApiResponse_HeatmapListResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/HeatmapListResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[HeatmapListResponse]"},"ApiResponse_HeatmapResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/app__schemas__pro__HeatmapResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[HeatmapResponse]"},"ApiResponse_HitListReport_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/HitListReport"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[HitListReport]"},"ApiResponse_HuntAssignmentResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/HuntAssignmentResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[HuntAssignmentResponse]"},"ApiResponse_HuntPlanResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/HuntPlanResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[HuntPlanResponse]"},"ApiResponse_HuntResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/HuntResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[HuntResponse]"},"ApiResponse_HuntSessionResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/HuntSessionResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[HuntSessionResponse]"},"ApiResponse_HuntSessionUpdateResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/HuntSessionUpdateResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[HuntSessionUpdateResponse]"},"ApiResponse_HunterRosterReport_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/HunterRosterReport"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[HunterRosterReport]"},"ApiResponse_ImpersonateEndResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/ImpersonateEndResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[ImpersonateEndResponse]"},"ApiResponse_ImpersonateResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/ImpersonateResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[ImpersonateResponse]"},"ApiResponse_IndividualUsageResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/IndividualUsageResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[IndividualUsageResponse]"},"ApiResponse_InitZipUploadResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/InitZipUploadResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[InitZipUploadResponse]"},"ApiResponse_InviteLookupResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/InviteLookupResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[InviteLookupResponse]"},"ApiResponse_LocationSummary_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/LocationSummary"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[LocationSummary]"},"ApiResponse_MapAssetListResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/MapAssetListResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[MapAssetListResponse]"},"ApiResponse_MapFeatureBulkResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/MapFeatureBulkResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[MapFeatureBulkResponse]"},"ApiResponse_MapFeatureResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/MapFeatureResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[MapFeatureResponse]"},"ApiResponse_MapsKeyResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/MapsKeyResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[MapsKeyResponse]"},"ApiResponse_MarkAllReadResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/MarkAllReadResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[MarkAllReadResponse]"},"ApiResponse_MeResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/MeResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[MeResponse]"},"ApiResponse_MemberInviteResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/MemberInviteResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[MemberInviteResponse]"},"ApiResponse_MemberResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/app__schemas__org_settings__MemberResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[MemberResponse]"},"ApiResponse_MigrationsResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/MigrationsResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[MigrationsResponse]"},"ApiResponse_ModelStatusResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/ModelStatusResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[ModelStatusResponse]"},"ApiResponse_MovementForecastResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/MovementForecastResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[MovementForecastResponse]"},"ApiResponse_NoneType_":{"properties":{"data":{"type":"null","title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[NoneType]"},"ApiResponse_NoteResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/NoteResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[NoteResponse]"},"ApiResponse_NotificationListResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/NotificationListResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[NotificationListResponse]"},"ApiResponse_NotificationPrefsResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/NotificationPrefsResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[NotificationPrefsResponse]"},"ApiResponse_NotificationResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/NotificationResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[NotificationResponse]"},"ApiResponse_OnboardingStateResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/OnboardingStateResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[OnboardingStateResponse]"},"ApiResponse_OptOutsResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/OptOutsResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[OptOutsResponse]"},"ApiResponse_OptimalConditionsResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/OptimalConditionsResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[OptimalConditionsResponse]"},"ApiResponse_OrgEntitlementsResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/OrgEntitlementsResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[OrgEntitlementsResponse]"},"ApiResponse_OrgPlanResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/OrgPlanResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[OrgPlanResponse]"},"ApiResponse_OrgQrSettingsResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/OrgQrSettingsResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[OrgQrSettingsResponse]"},"ApiResponse_OrganizationCreateResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/OrganizationCreateResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[OrganizationCreateResponse]"},"ApiResponse_OrganizationResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/OrganizationResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[OrganizationResponse]"},"ApiResponse_OutfitterHunterResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/OutfitterHunterResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[OutfitterHunterResponse]"},"ApiResponse_OutfitterResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/OutfitterResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[OutfitterResponse]"},"ApiResponse_PatternListResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PatternListResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[PatternListResponse]"},"ApiResponse_PhotoAnalysisEnvelope_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PhotoAnalysisEnvelope"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[PhotoAnalysisEnvelope]"},"ApiResponse_PhotoDetailResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PhotoDetailResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[PhotoDetailResponse]"},"ApiResponse_PhotoNoteResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PhotoNoteResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[PhotoNoteResponse]"},"ApiResponse_PhotoResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PhotoResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[PhotoResponse]"},"ApiResponse_PhotoSearchResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PhotoSearchResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[PhotoSearchResponse]"},"ApiResponse_PhotoStatsResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PhotoStatsResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[PhotoStatsResponse]"},"ApiResponse_PhotoUploadInitResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PhotoUploadInitResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[PhotoUploadInitResponse]"},"ApiResponse_PipelineActivityResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PipelineActivityResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[PipelineActivityResponse]"},"ApiResponse_PipelineResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PipelineResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[PipelineResponse]"},"ApiResponse_PredatorBulkImportResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PredatorBulkImportResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[PredatorBulkImportResponse]"},"ApiResponse_PredatorLatestResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PredatorLatestResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[PredatorLatestResponse]"},"ApiResponse_PredatorSightingDetailResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PredatorSightingDetailResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[PredatorSightingDetailResponse]"},"ApiResponse_PredatorSightingPhoto_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PredatorSightingPhoto"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[PredatorSightingPhoto]"},"ApiResponse_PredatorSightingResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PredatorSightingResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[PredatorSightingResponse]"},"ApiResponse_PreferencesResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PreferencesResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[PreferencesResponse]"},"ApiResponse_PresenceResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PresenceResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[PresenceResponse]"},"ApiResponse_ProfileDedupResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/ProfileDedupResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[ProfileDedupResponse]"},"ApiResponse_ProfileResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/ProfileResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[ProfileResponse]"},"ApiResponse_PromoCodeRow_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PromoCodeRow"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[PromoCodeRow]"},"ApiResponse_PromoteModelResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PromoteModelResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[PromoteModelResponse]"},"ApiResponse_PropertyDashboard_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PropertyDashboard"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[PropertyDashboard]"},"ApiResponse_PropertyInviteCreateResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PropertyInviteCreateResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[PropertyInviteCreateResponse]"},"ApiResponse_PropertyInviteResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PropertyInviteResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[PropertyInviteResponse]"},"ApiResponse_PropertyMovementDirection_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PropertyMovementDirection"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[PropertyMovementDirection]"},"ApiResponse_PropertyOverlayResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PropertyOverlayResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[PropertyOverlayResponse]"},"ApiResponse_PropertyPerformanceReport_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PropertyPerformanceReport"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[PropertyPerformanceReport]"},"ApiResponse_PropertyResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PropertyResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[PropertyResponse]"},"ApiResponse_PropertyRulesResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PropertyRulesResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[PropertyRulesResponse]"},"ApiResponse_PropertySlotCheckoutResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PropertySlotCheckoutResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[PropertySlotCheckoutResponse]"},"ApiResponse_PropertySummaryResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PropertySummaryResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[PropertySummaryResponse]"},"ApiResponse_PublicSessionView_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PublicSessionView"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[PublicSessionView]"},"ApiResponse_PublicShareView_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PublicShareView"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[PublicShareView]"},"ApiResponse_QRCodeResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/QRCodeResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[QRCodeResponse]"},"ApiResponse_RecomputeResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/RecomputeResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[RecomputeResponse]"},"ApiResponse_RegistryStatsResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/RegistryStatsResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[RegistryStatsResponse]"},"ApiResponse_RemoveMemberResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/RemoveMemberResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[RemoveMemberResponse]"},"ApiResponse_ReportCreateResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/ReportCreateResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[ReportCreateResponse]"},"ApiResponse_ReportListEntry_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/ReportListEntry"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[ReportListEntry]"},"ApiResponse_ReportListResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/ReportListResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[ReportListResponse]"},"ApiResponse_RequeueResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/RequeueResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[RequeueResponse]"},"ApiResponse_RetryResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/RetryResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[RetryResponse]"},"ApiResponse_SchedulerRunResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/SchedulerRunResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[SchedulerRunResponse]"},"ApiResponse_SchedulerStateResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/SchedulerStateResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[SchedulerStateResponse]"},"ApiResponse_SessionHarvestResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/SessionHarvestResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[SessionHarvestResponse]"},"ApiResponse_SexRatio_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/SexRatio"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[SexRatio]"},"ApiResponse_ShareCreateResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/ShareCreateResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[ShareCreateResponse]"},"ApiResponse_ShareLinkResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/ShareLinkResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[ShareLinkResponse]"},"ApiResponse_SightingsReport_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/SightingsReport"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[SightingsReport]"},"ApiResponse_SpeciesBreakdownResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/SpeciesBreakdownResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[SpeciesBreakdownResponse]"},"ApiResponse_SpeciesResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/SpeciesResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[SpeciesResponse]"},"ApiResponse_StandAssignmentResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/StandAssignmentResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[StandAssignmentResponse]"},"ApiResponse_StandDeleteResult_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/StandDeleteResult"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[StandDeleteResult]"},"ApiResponse_StandListResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/StandListResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[StandListResponse]"},"ApiResponse_StandNoteResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/StandNoteResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[StandNoteResponse]"},"ApiResponse_StateHarvestUrlResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/StateHarvestUrlResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[StateHarvestUrlResponse]"},"ApiResponse_StripeUsageRecordPreview_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/StripeUsageRecordPreview"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[StripeUsageRecordPreview]"},"ApiResponse_StuckAnalysisListResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/StuckAnalysisListResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[StuckAnalysisListResponse]"},"ApiResponse_SuitabilityListResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/SuitabilityListResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[SuitabilityListResponse]"},"ApiResponse_SystemAdminGrantResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/SystemAdminGrantResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[SystemAdminGrantResponse]"},"ApiResponse_SystemHealthResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/SystemHealthResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[SystemHealthResponse]"},"ApiResponse_SystemHealthSloResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/SystemHealthSloResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[SystemHealthSloResponse]"},"ApiResponse_TaxonListResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/TaxonListResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[TaxonListResponse]"},"ApiResponse_TaxonResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/TaxonResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[TaxonResponse]"},"ApiResponse_TopIndividualsResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/TopIndividualsResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[TopIndividualsResponse]"},"ApiResponse_TrackedBuckDetail_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/TrackedBuckDetail"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[TrackedBuckDetail]"},"ApiResponse_UiStateResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/UiStateResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[UiStateResponse]"},"ApiResponse_Union_AnalysisResponse__NoneType__":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AnalysisResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[Union[AnalysisResponse, NoneType]]"},"ApiResponse_Union_HuntAssignmentResponse__NoneType__":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/HuntAssignmentResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[Union[HuntAssignmentResponse, NoneType]]"},"ApiResponse_Union_MovementForecastResponse__NoneType__":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/MovementForecastResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[Union[MovementForecastResponse, NoneType]]"},"ApiResponse_Union_PublicAccuracyStats__NoneType__":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PublicAccuracyStats"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[Union[PublicAccuracyStats, NoneType]]"},"ApiResponse_Union_SuitabilityResponse__NoneType__":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/SuitabilityResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[Union[SuitabilityResponse, NoneType]]"},"ApiResponse_Union_TemporalPatternResponse__NoneType__":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/TemporalPatternResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[Union[TemporalPatternResponse, NoneType]]"},"ApiResponse_Union_dict__NoneType__":{"properties":{"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[Union[dict, NoneType]]"},"ApiResponse_UnreadCountResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/UnreadCountResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[UnreadCountResponse]"},"ApiResponse_UpdateBillingTierResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/UpdateBillingTierResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[UpdateBillingTierResponse]"},"ApiResponse_UploadBatchListResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/UploadBatchListResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[UploadBatchListResponse]"},"ApiResponse_UploadBatchStatusResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/UploadBatchStatusResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[UploadBatchStatusResponse]"},"ApiResponse_UploadItemsResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/UploadItemsResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[UploadItemsResponse]"},"ApiResponse_UploadUrlResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/UploadUrlResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[UploadUrlResponse]"},"ApiResponse_UsageCostResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/UsageCostResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[UsageCostResponse]"},"ApiResponse_UsageEventRecordResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/UsageEventRecordResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[UsageEventRecordResponse]"},"ApiResponse_UsageMeResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/UsageMeResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[UsageMeResponse]"},"ApiResponse_UsageMeterListResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/UsageMeterListResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[UsageMeterListResponse]"},"ApiResponse_UsageMeterResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/UsageMeterResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[UsageMeterResponse]"},"ApiResponse_UsagePropertyResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/UsagePropertyResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[UsagePropertyResponse]"},"ApiResponse_UsageSummaryResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/UsageSummaryResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[UsageSummaryResponse]"},"ApiResponse_ValidateModelResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/ValidateModelResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[ValidateModelResponse]"},"ApiResponse_WeatherCorrelationResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/WeatherCorrelationResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[WeatherCorrelationResponse]"},"ApiResponse_WeatherResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/WeatherResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[WeatherResponse]"},"ApiResponse_WebhookTestResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/WebhookTestResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[WebhookTestResponse]"},"ApiResponse_WeekendBriefingCreateResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/WeekendBriefingCreateResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[WeekendBriefingCreateResponse]"},"ApiResponse_ZipUploadPartsResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/ZipUploadPartsResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[ZipUploadPartsResponse]"},"ApiResponse__AdminTicketDetail_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/_AdminTicketDetail"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[_AdminTicketDetail]"},"ApiResponse__AdminTicketList_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/_AdminTicketList"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[_AdminTicketList]"},"ApiResponse__AdminTicketMessage_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/_AdminTicketMessage"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[_AdminTicketMessage]"},"ApiResponse__AdminTicket_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/_AdminTicket"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[_AdminTicket]"},"ApiResponse__AuditLogResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/_AuditLogResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[_AuditLogResponse]"},"ApiResponse__CachedBriefingResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/_CachedBriefingResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[_CachedBriefingResponse]"},"ApiResponse__DsarFulfillResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/_DsarFulfillResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[_DsarFulfillResponse]"},"ApiResponse__GenerateBriefingResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/_GenerateBriefingResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[_GenerateBriefingResponse]"},"ApiResponse__IpLogResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/_IpLogResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[_IpLogResponse]"},"ApiResponse__ResetPasswordResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/_ResetPasswordResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[_ResetPasswordResponse]"},"ApiResponse__RetryJobResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/_RetryJobResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[_RetryJobResponse]"},"ApiResponse__RevokeSessionResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/_RevokeSessionResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[_RevokeSessionResponse]"},"ApiResponse__SessionListResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/_SessionListResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[_SessionListResponse]"},"ApiResponse_dict_":{"properties":{"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[dict]"},"ApiResponse_dict_str__Any__":{"properties":{"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[dict[str, Any]]"},"ApiResponse_dict_str__int__":{"properties":{"data":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[dict[str, int]]"},"ApiResponse_dict_str__list_PropertyOverlayResponse___":{"properties":{"data":{"anyOf":[{"additionalProperties":{"items":{"$ref":"#/components/schemas/PropertyOverlayResponse"},"type":"array"},"type":"object"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[dict[str, list[PropertyOverlayResponse]]]"},"ApiResponse_list_":{"properties":{"data":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list]"},"ApiResponse_list_ActivityWeatherDay__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/ActivityWeatherDay"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[ActivityWeatherDay]]"},"ApiResponse_list_AdminClassHistoryRow__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/AdminClassHistoryRow"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[AdminClassHistoryRow]]"},"ApiResponse_list_AdminRecipientRow__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/AdminRecipientRow"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[AdminRecipientRow]]"},"ApiResponse_list_AdminUserRow__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/AdminUserRow"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[AdminUserRow]]"},"ApiResponse_list_AlertChannelConfigResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/AlertChannelConfigResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[AlertChannelConfigResponse]]"},"ApiResponse_list_AlertThresholdResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/AlertThresholdResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[AlertThresholdResponse]]"},"ApiResponse_list_AnimalResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/AnimalResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[AnimalResponse]]"},"ApiResponse_list_AntlerDistribution__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/AntlerDistribution"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[AntlerDistribution]]"},"ApiResponse_list_BenchmarkAccuracyTrend__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/BenchmarkAccuracyTrend"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[BenchmarkAccuracyTrend]]"},"ApiResponse_list_BriefingSummary__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/BriefingSummary"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[BriefingSummary]]"},"ApiResponse_list_BuckSightingResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/BuckSightingResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[BuckSightingResponse]]"},"ApiResponse_list_CalibrationQueueItem__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/CalibrationQueueItem"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[CalibrationQueueItem]]"},"ApiResponse_list_CameraComparison__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/CameraComparison"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[CameraComparison]]"},"ApiResponse_list_CameraPortalResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/CameraPortalResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[CameraPortalResponse]]"},"ApiResponse_list_CameraResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/CameraResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[CameraResponse]]"},"ApiResponse_list_ClientHuntHistorySafe__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/ClientHuntHistorySafe"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[ClientHuntHistorySafe]]"},"ApiResponse_list_ClientHuntPlanSummary__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/ClientHuntPlanSummary"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[ClientHuntPlanSummary]]"},"ApiResponse_list_ClientResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/ClientResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[ClientResponse]]"},"ApiResponse_list_DeviceGroupResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/DeviceGroupResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[DeviceGroupResponse]]"},"ApiResponse_list_DeviceTypeResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/DeviceTypeResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[DeviceTypeResponse]]"},"ApiResponse_list_DsarView__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/DsarView"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[DsarView]]"},"ApiResponse_list_HarvestRecordResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/HarvestRecordResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[HarvestRecordResponse]]"},"ApiResponse_list_HourlyActivity__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/HourlyActivity"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[HourlyActivity]]"},"ApiResponse_list_HuntAssignmentResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/HuntAssignmentResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[HuntAssignmentResponse]]"},"ApiResponse_list_HuntHistoryResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/HuntHistoryResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[HuntHistoryResponse]]"},"ApiResponse_list_HuntPlanResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/HuntPlanResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[HuntPlanResponse]]"},"ApiResponse_list_HuntResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/HuntResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[HuntResponse]]"},"ApiResponse_list_HuntSessionResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/HuntSessionResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[HuntSessionResponse]]"},"ApiResponse_list_IngestionStatusResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/IngestionStatusResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[IngestionStatusResponse]]"},"ApiResponse_list_InviteListItem__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/InviteListItem"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[InviteListItem]]"},"ApiResponse_list_InvoiceRow__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/InvoiceRow"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[InvoiceRow]]"},"ApiResponse_list_MapFeatureResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/MapFeatureResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[MapFeatureResponse]]"},"ApiResponse_list_MovementEvent__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/MovementEvent"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[MovementEvent]]"},"ApiResponse_list_NearbyBuckResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/NearbyBuckResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[NearbyBuckResponse]]"},"ApiResponse_list_NoteResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/NoteResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[NoteResponse]]"},"ApiResponse_list_OrganizationListRow__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/OrganizationListRow"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[OrganizationListRow]]"},"ApiResponse_list_OutfitterHunterResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/OutfitterHunterResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[OutfitterHunterResponse]]"},"ApiResponse_list_PasskeyResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/PasskeyResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[PasskeyResponse]]"},"ApiResponse_list_PhotoNoteResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/PhotoNoteResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[PhotoNoteResponse]]"},"ApiResponse_list_PromoCodeRow__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/PromoCodeRow"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[PromoCodeRow]]"},"ApiResponse_list_PropertyBestWindowRow__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/PropertyBestWindowRow"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[PropertyBestWindowRow]]"},"ApiResponse_list_PropertyBuckActivity__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/PropertyBuckActivity"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[PropertyBuckActivity]]"},"ApiResponse_list_PropertyInviteResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/PropertyInviteResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[PropertyInviteResponse]]"},"ApiResponse_list_PropertyResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/PropertyResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[PropertyResponse]]"},"ApiResponse_list_RevenueSummary__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/RevenueSummary"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[RevenueSummary]]"},"ApiResponse_list_SeasonPassExpiringRow__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/SeasonPassExpiringRow"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[SeasonPassExpiringRow]]"},"ApiResponse_list_ShareLinkResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/ShareLinkResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[ShareLinkResponse]]"},"ApiResponse_list_SpeciesBreakdownRow__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/SpeciesBreakdownRow"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[SpeciesBreakdownRow]]"},"ApiResponse_list_SpeciesImageResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/SpeciesImageResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[SpeciesImageResponse]]"},"ApiResponse_list_SpeciesOptionResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/SpeciesOptionResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[SpeciesOptionResponse]]"},"ApiResponse_list_SpeciesResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/SpeciesResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[SpeciesResponse]]"},"ApiResponse_list_SpeciesSummary__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/SpeciesSummary"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[SpeciesSummary]]"},"ApiResponse_list_StandAssignmentResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/StandAssignmentResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[StandAssignmentResponse]]"},"ApiResponse_list_StandHazardResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/StandHazardResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[StandHazardResponse]]"},"ApiResponse_list_StandNoteResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/StandNoteResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[StandNoteResponse]]"},"ApiResponse_list_StandRecBody__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/StandRecBody"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[StandRecBody]]"},"ApiResponse_list_StandResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/app__schemas__stand__StandResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[StandResponse]]"},"ApiResponse_list_StandUsageResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/StandUsageResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[StandUsageResponse]]"},"ApiResponse_list_TrendPoint__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/TrendPoint"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[TrendPoint]]"},"ApiResponse_list_UnifiedAccountRow__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/UnifiedAccountRow"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[UnifiedAccountRow]]"},"ApiResponse_list_dict_str__Any___":{"properties":{"data":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[dict[str, Any]]]"},"AssetCreateRequest":{"properties":{"asset_type":{"type":"string","enum":["water_source","food_plot"],"title":"Asset Type"},"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"latitude":{"type":"number","maximum":90.0,"minimum":-90.0,"title":"Latitude"},"longitude":{"type":"number","maximum":180.0,"minimum":-180.0,"title":"Longitude"},"asset_metadata":{"additionalProperties":true,"type":"object","title":"Asset Metadata"}},"type":"object","required":["asset_type","name","latitude","longitude"],"title":"AssetCreateRequest"},"AssetResponse":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"property_id":{"type":"string","title":"Property Id"},"asset_type":{"type":"string","title":"Asset Type"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"latitude":{"type":"number","title":"Latitude"},"longitude":{"type":"number","title":"Longitude"},"asset_metadata":{"additionalProperties":true,"type":"object","title":"Asset Metadata"},"status":{"type":"string","title":"Status"},"created_by_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","organization_id","property_id","asset_type","name","latitude","longitude","asset_metadata","status","created_at","updated_at"],"title":"AssetResponse"},"AssetUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"latitude":{"anyOf":[{"type":"number","maximum":90.0,"minimum":-90.0},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number","maximum":180.0,"minimum":-180.0},{"type":"null"}],"title":"Longitude"},"asset_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Asset Metadata"},"status":{"anyOf":[{"type":"string","enum":["active","inactive","maintenance"]},{"type":"null"}],"title":"Status"}},"type":"object","title":"AssetUpdateRequest","description":"Partial update — every field optional. Coordinates can be\nmoved by supplying a new ``latitude``/``longitude`` pair; the\nlegacy \"drag-to-move\" UX maps onto this shape."},"AssignStandRequest":{"properties":{"client_id":{"type":"string","title":"Client Id"},"stand_id":{"type":"string","title":"Stand Id"},"access_window":{"additionalProperties":true,"type":"object","title":"Access Window"}},"type":"object","required":["client_id","stand_id"],"title":"AssignStandRequest"},"AssignmentClearRequest":{"properties":{"outcome":{"$ref":"#/components/schemas/AssignmentOutcome"}},"type":"object","required":["outcome"],"title":"AssignmentClearRequest","description":"Body for clearing an assignment after the hunt window ends."},"AssignmentClearResult":{"properties":{"assignment":{"$ref":"#/components/schemas/HuntAssignmentResponse"},"prompt_harvest_record":{"type":"boolean","title":"Prompt Harvest Record","default":false}},"type":"object","required":["assignment"],"title":"AssignmentClearResult","description":"Returned by ``HuntAssignmentService.clear_assignment``.\n\n``prompt_harvest_record`` is the flag the UI uses to decide whether\nto open the harvest-creation modal next. True iff outcome=='harvest'."},"AssignmentOutcome":{"type":"string","enum":["harvest","no_harvest","cancelled"],"title":"AssignmentOutcome","description":"Terminal outcome for a `hunt_assignments` row. The default state\nbefore a hunt completes is implicit (NULL / unset); these are the\nclosed-out values."},"AuditLogEntry":{"properties":{"id":{"type":"integer","title":"Id"},"profile_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Id"},"action":{"type":"string","title":"Action"},"resource_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Type"},"resource_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Id"},"details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Details"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","action","created_at"],"title":"AuditLogEntry"},"AuditLogResponse":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/AuditLogEntry"},"type":"array","title":"Entries"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["entries","total"],"title":"AuditLogResponse"},"AuthenticateCompleteRequest":{"properties":{"credential_id":{"type":"string","title":"Credential Id"},"client_data":{"type":"string","title":"Client Data"},"authenticator_data":{"type":"string","title":"Authenticator Data"},"signature":{"type":"string","title":"Signature"}},"type":"object","required":["credential_id","client_data","authenticator_data","signature"],"title":"AuthenticateCompleteRequest"},"AutomationConfigResponse":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"enabled":{"type":"boolean","title":"Enabled"},"report_frequency":{"$ref":"#/components/schemas/ReportFrequency"},"report_lookback_days":{"type":"integer","title":"Report Lookback Days"},"min_sightings_for_pattern":{"type":"integer","title":"Min Sightings For Pattern"},"shooter_min_score":{"type":"integer","title":"Shooter Min Score"},"shooter_min_age_years":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Shooter Min Age Years"},"shooter_confidence_threshold":{"type":"number","title":"Shooter Confidence Threshold"},"include_does":{"type":"boolean","title":"Include Does"},"include_turkey":{"type":"boolean","title":"Include Turkey"},"target_species":{"items":{"type":"string"},"type":"array","title":"Target Species"},"max_photos_per_report":{"type":"integer","title":"Max Photos Per Report"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","organization_id","enabled","report_frequency","report_lookback_days","min_sightings_for_pattern","shooter_min_score","shooter_confidence_threshold","include_does","include_turkey","target_species","max_photos_per_report","created_at","updated_at"],"title":"AutomationConfigResponse"},"AutomationConfigUpdate":{"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"report_frequency":{"anyOf":[{"$ref":"#/components/schemas/ReportFrequency"},{"type":"null"}]},"report_lookback_days":{"anyOf":[{"type":"integer","maximum":90.0,"minimum":7.0},{"type":"null"}],"title":"Report Lookback Days"},"min_sightings_for_pattern":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Min Sightings For Pattern"},"shooter_min_score":{"anyOf":[{"type":"integer","maximum":400.0,"minimum":0.0},{"type":"null"}],"title":"Shooter Min Score"},"shooter_min_age_years":{"anyOf":[{"type":"number","maximum":20.0,"minimum":0.0},{"type":"null"}],"title":"Shooter Min Age Years"},"shooter_confidence_threshold":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Shooter Confidence Threshold"},"include_does":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Include Does"},"include_turkey":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Include Turkey"},"target_species":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Target Species"},"max_photos_per_report":{"anyOf":[{"type":"integer","maximum":500.0,"minimum":10.0},{"type":"null"}],"title":"Max Photos Per Report"}},"type":"object","title":"AutomationConfigUpdate","description":"Partial update — every field optional. Validation lives in\nthe service layer + DB CHECK constraints; this just enforces\nrange hints at the API edge for cleaner 422 messages."},"AutomationHuntPlanListResponse":{"properties":{"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"items":{"items":{"$ref":"#/components/schemas/AutomationHuntPlanResponse"},"type":"array","title":"Items"}},"type":"object","required":["total","limit","offset","items"],"title":"AutomationHuntPlanListResponse"},"AutomationHuntPlanResponse":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"property_id":{"type":"string","title":"Property Id"},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"period_start":{"type":"string","format":"date-time","title":"Period Start"},"period_end":{"type":"string","format":"date-time","title":"Period End"},"period_timezone":{"type":"string","title":"Period Timezone"},"recommendations":{"additionalProperties":true,"type":"object","title":"Recommendations"},"is_archived":{"type":"boolean","title":"Is Archived"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","organization_id","property_id","period_start","period_end","period_timezone","recommendations","is_archived","created_at"],"title":"AutomationHuntPlanResponse"},"AutomationReportListResponse":{"properties":{"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"items":{"items":{"$ref":"#/components/schemas/AutomationReportResponse"},"type":"array","title":"Items"}},"type":"object","required":["total","limit","offset","items"],"title":"AutomationReportListResponse"},"AutomationReportResponse":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"property_id":{"type":"string","title":"Property Id"},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"period_start":{"type":"string","format":"date-time","title":"Period Start"},"period_end":{"type":"string","format":"date-time","title":"Period End"},"period_timezone":{"type":"string","title":"Period Timezone"},"report_frequency":{"$ref":"#/components/schemas/ReportFrequency"},"summary":{"additionalProperties":true,"type":"object","title":"Summary"},"is_archived":{"type":"boolean","title":"Is Archived"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"temporal_axis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Temporal Axis"}},"type":"object","required":["id","organization_id","property_id","period_start","period_end","period_timezone","report_frequency","summary","is_archived","created_at"],"title":"AutomationReportResponse"},"AutomationRunLogResponse":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"status":{"$ref":"#/components/schemas/RunStatus"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"properties_processed":{"type":"integer","title":"Properties Processed"},"properties_failed":{"type":"integer","title":"Properties Failed"},"total_properties":{"type":"integer","title":"Total Properties"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","organization_id","status","properties_processed","properties_failed","total_properties","created_at"],"title":"AutomationRunLogResponse"},"AutomationRunNowResponse":{"properties":{"run_id":{"type":"string","title":"Run Id"},"status":{"$ref":"#/components/schemas/RunStatus"},"message":{"type":"string","title":"Message"}},"type":"object","required":["run_id","status","message"],"title":"AutomationRunNowResponse"},"BatchAnalyzeRequest":{"properties":{"photo_ids":{"items":{"type":"string"},"type":"array","maxItems":100,"title":"Photo Ids"}},"type":"object","required":["photo_ids"],"title":"BatchAnalyzeRequest"},"BatchDeleteRequest":{"properties":{"photo_ids":{"items":{"type":"string"},"type":"array","title":"Photo Ids"}},"type":"object","required":["photo_ids"],"title":"BatchDeleteRequest"},"BatteryType":{"type":"string","enum":["AA Alkaline","AA Rechargeable","Lithium Cartridge","Solar"],"title":"BatteryType"},"BenchmarkAccuracyTrend":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"overall_accuracy":{"type":"number","title":"Overall Accuracy"},"overall_f1":{"type":"number","title":"Overall F1"},"dataset_size":{"type":"integer","title":"Dataset Size"},"model_version":{"type":"string","title":"Model Version"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","overall_accuracy","overall_f1","dataset_size","model_version","created_at"],"title":"BenchmarkAccuracyTrend"},"BenchmarkGroundTruthItem":{"properties":{"photo_id":{"type":"string","title":"Photo Id"},"true_species":{"type":"string","title":"True Species"}},"type":"object","required":["photo_id","true_species"],"title":"BenchmarkGroundTruthItem"},"BenchmarkRunCreate":{"properties":{"name":{"type":"string","title":"Name","default":""},"ground_truth":{"items":{"$ref":"#/components/schemas/BenchmarkGroundTruthItem"},"type":"array","title":"Ground Truth"},"use_existing":{"type":"boolean","title":"Use Existing","default":true}},"type":"object","required":["ground_truth"],"title":"BenchmarkRunCreate"},"BenchmarkRunResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"dataset_size":{"type":"integer","title":"Dataset Size"},"model_version":{"type":"string","title":"Model Version"},"overall_accuracy":{"type":"number","title":"Overall Accuracy"},"overall_precision":{"type":"number","title":"Overall Precision"},"overall_recall":{"type":"number","title":"Overall Recall"},"overall_f1":{"type":"number","title":"Overall F1"},"per_species_results":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Per Species Results"},"confusion_matrix":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Confusion Matrix"},"total_photos_analyzed":{"type":"integer","title":"Total Photos Analyzed"},"total_correct":{"type":"integer","title":"Total Correct"},"total_incorrect":{"type":"integer","title":"Total Incorrect"},"avg_confidence_correct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Confidence Correct"},"avg_confidence_incorrect":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Confidence Incorrect"},"processing_time_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Processing Time Ms"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","dataset_size","model_version","overall_accuracy","overall_precision","overall_recall","overall_f1","total_photos_analyzed","total_correct","total_incorrect","status","created_at","updated_at"],"title":"BenchmarkRunResponse"},"BenchmarkSummaryResponse":{"properties":{"median_photos_per_org":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Photos Per Org"},"median_buck_ids_per_org":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Buck Ids Per Org"},"briefings_sent_30d":{"type":"integer","title":"Briefings Sent 30D"},"retention_90d_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Retention 90D Pct"},"retention_no_data":{"type":"boolean","title":"Retention No Data"},"photos_per_day":{"items":{"$ref":"#/components/schemas/PhotosPerDay"},"type":"array","title":"Photos Per Day"},"buck_ids_per_day":{"items":{"$ref":"#/components/schemas/BuckIdsPerDay"},"type":"array","title":"Buck Ids Per Day"},"photos_by_tier":{"items":{"$ref":"#/components/schemas/PhotosByTier"},"type":"array","title":"Photos By Tier"}},"type":"object","required":["briefings_sent_30d","retention_no_data","photos_per_day","buck_ids_per_day","photos_by_tier"],"title":"BenchmarkSummaryResponse"},"BestWindow":{"properties":{"start":{"type":"string","title":"Start"},"end":{"type":"string","title":"End"},"score":{"type":"number","title":"Score"}},"type":"object","required":["start","end","score"],"title":"BestWindow"},"BestWindowResponse":{"properties":{"stand_id":{"type":"string","title":"Stand Id"},"score":{"type":"integer","title":"Score"},"grade":{"type":"string","title":"Grade"},"primary_window_start":{"anyOf":[{"type":"string","format":"time"},{"type":"null"}],"title":"Primary Window Start"},"primary_window_end":{"anyOf":[{"type":"string","format":"time"},{"type":"null"}],"title":"Primary Window End"},"secondary_window_start":{"anyOf":[{"type":"string","format":"time"},{"type":"null"}],"title":"Secondary Window Start"},"secondary_window_end":{"anyOf":[{"type":"string","format":"time"},{"type":"null"}],"title":"Secondary Window End"},"factors":{"additionalProperties":true,"type":"object","title":"Factors"},"computed_at":{"type":"string","format":"date-time","title":"Computed At"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"model_version":{"type":"string","title":"Model Version"}},"type":"object","required":["stand_id","score","grade","factors","computed_at","expires_at","model_version"],"title":"BestWindowResponse","description":"Per-stand scoring result returned by the live endpoint."},"BillingStateResponse":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"name":{"type":"string","title":"Name"},"tier":{"$ref":"#/components/schemas/SubscriptionTier"},"seats_purchased":{"type":"integer","title":"Seats Purchased"},"seats_used":{"type":"integer","title":"Seats Used"},"stripe_customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Customer Id"},"stripe_subscription_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Subscription Id"},"subscription_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Status"}},"type":"object","required":["organization_id","name","tier","seats_purchased","seats_used"],"title":"BillingStateResponse","description":"Returned by ``GET /admin/billing/:org_id``."},"BillingSummaryResponse":{"properties":{"mrr_usd":{"type":"number","title":"Mrr Usd"},"arr_usd":{"type":"number","title":"Arr Usd"},"tiers_active":{"type":"integer","title":"Tiers Active"},"churned_30d":{"type":"integer","title":"Churned 30D"},"new_orgs_30d":{"type":"integer","title":"New Orgs 30D"},"mrr_movement_30d":{"type":"number","title":"Mrr Movement 30D"},"active_subscriptions":{"items":{"$ref":"#/components/schemas/ActiveSubscriptionRow"},"type":"array","title":"Active Subscriptions"},"orgs_approaching_renewal":{"items":{"$ref":"#/components/schemas/OrgApproachingRenewal"},"type":"array","title":"Orgs Approaching Renewal"},"payment_failures_30d":{"type":"integer","title":"Payment Failures 30D"},"orgs_past_due":{"items":{"$ref":"#/components/schemas/ActiveSubscriptionRow"},"type":"array","title":"Orgs Past Due"},"tier_distribution":{"additionalProperties":{"type":"integer"},"type":"object","title":"Tier Distribution"},"upgrades_30d":{"type":"integer","title":"Upgrades 30D"},"downgrades_30d":{"type":"integer","title":"Downgrades 30D"}},"type":"object","required":["mrr_usd","arr_usd","tiers_active","churned_30d","new_orgs_30d","mrr_movement_30d","active_subscriptions","orgs_approaching_renewal","payment_failures_30d","orgs_past_due","tier_distribution","upgrades_30d","downgrades_30d"],"title":"BillingSummaryResponse"},"BodyCondition":{"type":"string","enum":["poor","fair","good","excellent","unknown"],"title":"BodyCondition"},"Body_bulk_import_assets_api_v1_properties__property_id__assets_bulk_import_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File","description":"CSV file"}},"type":"object","required":["file"],"title":"Body_bulk_import_assets_api_v1_properties__property_id__assets_bulk_import_post"},"Body_bulk_import_predator_sightings_api_v1_properties__property_id__predator_sightings_bulk_import_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File","description":"CSV file"}},"type":"object","required":["file"],"title":"Body_bulk_import_predator_sightings_api_v1_properties__property_id__predator_sightings_bulk_import_post"},"Body_import_camera_gps_api_v1_properties__property_id__cameras_import_gps_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_import_camera_gps_api_v1_properties__property_id__cameras_import_gps_post"},"Body_ingest_csv_api_v1_ingest_csv_post":{"properties":{"csv_file":{"type":"string","contentMediaType":"application/octet-stream","title":"Csv File","description":"CSV with at least an image_url column"},"property_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Id"}},"type":"object","required":["csv_file"],"title":"Body_ingest_csv_api_v1_ingest_csv_post"},"Body_upload_avatar_api_v1_auth_me_avatar_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_avatar_api_v1_auth_me_avatar_post"},"Body_upload_my_org_logo_api_v1_organization_logo_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File","description":"Logo image: .jpg/.jpeg/.png, max 5MB"}},"type":"object","required":["file"],"title":"Body_upload_my_org_logo_api_v1_organization_logo_post"},"Body_upload_organization_logo_api_v1_admin_organizations__organization_id__logo_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File","description":"Logo image: .jpg/.jpeg/.png, max 5MB"}},"type":"object","required":["file"],"title":"Body_upload_organization_logo_api_v1_admin_organizations__organization_id__logo_post"},"BoundaryResponse":{"properties":{"property_id":{"type":"string","title":"Property Id"},"boundary_geojson":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Boundary Geojson"}},"type":"object","required":["property_id"],"title":"BoundaryResponse"},"BoundaryUpdate":{"properties":{"type":{"type":"string","title":"Type","default":"Feature"},"geometry":{"additionalProperties":true,"type":"object","title":"Geometry"},"properties":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Properties"}},"type":"object","required":["geometry"],"title":"BoundaryUpdate","description":"GeoJSON Feature with a Polygon or MultiPolygon geometry."},"BrandColorRequest":{"properties":{"brand_color":{"anyOf":[{"type":"string","maxLength":9},{"type":"null"}],"title":"Brand Color"}},"type":"object","title":"BrandColorRequest","description":"Body for setting the brand color on its own.\n\n``brand_color=\"\"`` clears it, matching the ``logo_url=\"\"`` convention already\nused by ``PATCH /admin/organizations/{id}``."},"BrandingResponse":{"properties":{"brand_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Color"},"brand_color_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Color Source"},"logo_palette":{"items":{"type":"string"},"type":"array","title":"Logo Palette"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"logo_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo R2 Key"},"from_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Name"}},"type":"object","title":"BrandingResponse","description":"An organization's resolved branding.\n\n``logo_url`` is a freshly presigned URL for the uploaded logo, or the\npre-existing ``organizations.logo_url`` when nothing has been uploaded. It is\nshort-lived by construction — clients must re-read rather than persist it.\n\n``logo_r2_key`` is exposed so an admin surface can tell \"no logo\" from \"logo\npresent but its URL could not be signed right now\"; the two look identical if\nonly the URL is returned, and the second is an operational problem worth\nseeing rather than rendering as an empty slot."},"BrandingStub":{"properties":{"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"brand_color":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Brand Color"}},"type":"object","title":"BrandingStub","description":"RutLine branding section (WLAI-304 stub).\n\n``logo_url`` lands on ``Organization.logo_url`` — the existing column the\nQR white-label PDF path already reads. ``brand_color`` has NO column\nanywhere and deliberately does not get one: it is stored in the\n``white_label_branding`` entitlement's ``config`` JSONB, which ties the\nbrand colour to the paywalled capability that gates it. An org without the\nentitlement then structurally cannot hold a brand colour, which is the\ndirection WLAI-315 is already moving (retiring\n``organizations.white_label_contract`` in favour of that same capability)."},"BriefingResponse":{"properties":{"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"best_window":{"$ref":"#/components/schemas/_BriefingBestWindow"},"weather":{"$ref":"#/components/schemas/_BriefingWeather"},"moon":{"$ref":"#/components/schemas/_BriefingMoon"},"rut":{"$ref":"#/components/schemas/_BriefingRut"},"detections":{"$ref":"#/components/schemas/_BriefingDetections"},"species_breakdown":{"items":{"$ref":"#/components/schemas/_BriefingSpeciesEntry"},"type":"array","title":"Species Breakdown"},"hit_list_target":{"anyOf":[{"$ref":"#/components/schemas/_BriefingHitListTarget"},{"type":"null"}]},"stand":{"$ref":"#/components/schemas/_BriefingStand"},"recent_guide_notes":{"items":{"$ref":"#/components/schemas/_BriefingGuideNote"},"type":"array","title":"Recent Guide Notes"}},"type":"object","required":["generated_at"],"title":"BriefingResponse","description":"All fields from the ``briefing_data`` JSONB structure.\n\nEach subsection is independently nullable — sections drop out\nsilently when the underlying source has no signal (e.g. no\ncamera → no detections, no hit-list match → no target)."},"BriefingSummary":{"properties":{"brief_id":{"type":"string","title":"Brief Id"},"hunt_plan_id":{"type":"string","title":"Hunt Plan Id"},"created_at":{"type":"string","title":"Created At"},"summary":{"additionalProperties":true,"type":"object","title":"Summary"}},"type":"object","required":["brief_id","hunt_plan_id","created_at","summary"],"title":"BriefingSummary"},"BroadcastCreate":{"properties":{"title":{"type":"string","title":"Title"},"message":{"type":"string","title":"Message"},"level":{"type":"string","title":"Level","default":"info"}},"type":"object","required":["title","message"],"title":"BroadcastCreate"},"BroadcastResponse":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"message":{"type":"string","title":"Message"},"level":{"type":"string","title":"Level"},"created_at":{"type":"string","title":"Created At"},"created_by":{"type":"string","title":"Created By"}},"type":"object","required":["id","title","message","level","created_at","created_by"],"title":"BroadcastResponse"},"BuckIdsPerDay":{"properties":{"date":{"type":"string","title":"Date"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["date","count"],"title":"BuckIdsPerDay"},"BuckSightingResponse":{"properties":{"id":{"type":"string","title":"Id"},"tracked_buck_id":{"type":"string","title":"Tracked Buck Id"},"seen_at":{"type":"string","format":"date-time","title":"Seen At"},"latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Longitude"},"antler_points":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Antler Points"},"antler_score_estimate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Antler Score Estimate"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"age_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Age Class"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","tracked_buck_id","seen_at","created_at"],"title":"BuckSightingResponse","description":"A single sighting of a tracked buck — fuzzed location, no property names."},"BulkCameraCreate":{"properties":{"cameras":{"items":{"$ref":"#/components/schemas/CameraCreate"},"type":"array","maxItems":500,"minItems":1,"title":"Cameras"}},"type":"object","required":["cameras"],"title":"BulkCameraCreate"},"BulkCameraError":{"properties":{"index":{"type":"integer","title":"Index"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"detail":{"type":"string","title":"Detail"}},"type":"object","required":["index","detail"],"title":"BulkCameraError"},"BulkCameraResult":{"properties":{"created":{"items":{"$ref":"#/components/schemas/CameraResponse"},"type":"array","title":"Created"},"errors":{"items":{"$ref":"#/components/schemas/BulkCameraError"},"type":"array","title":"Errors"}},"type":"object","required":["created","errors"],"title":"BulkCameraResult"},"BulkImportFailedRow":{"properties":{"row_num":{"type":"integer","title":"Row Num"},"error":{"type":"string","title":"Error"}},"type":"object","required":["row_num","error"],"title":"BulkImportFailedRow"},"BulkImportResponse":{"properties":{"total_rows_attempted":{"type":"integer","title":"Total Rows Attempted"},"total_imported":{"type":"integer","title":"Total Imported"},"failed_rows":{"items":{"$ref":"#/components/schemas/BulkImportFailedRow"},"type":"array","title":"Failed Rows"},"success":{"type":"boolean","title":"Success"}},"type":"object","required":["total_rows_attempted","total_imported","failed_rows","success"],"title":"BulkImportResponse"},"BulkPhotoReassignRequest":{"properties":{"photo_ids":{"items":{"type":"string"},"type":"array","maxItems":1000,"minItems":1,"title":"Photo Ids"},"camera_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Id"}},"type":"object","required":["photo_ids"],"title":"BulkPhotoReassignRequest","description":"DEFECT-098: body for `POST /photos/reassign-camera` — set/clear camera on\na photo selection. ``camera_id=None`` unassigns."},"BulkPhotoReassignResponse":{"properties":{"updated":{"type":"integer","title":"Updated"},"errors":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Errors"}},"type":"object","required":["updated"],"title":"BulkPhotoReassignResponse"},"CacheClearResponse":{"properties":{"type":{"type":"string","enum":["analytics","feature_flags","dlq","health_metrics","intelligence"],"title":"Type"},"keys_deleted":{"type":"integer","minimum":0.0,"title":"Keys Deleted"},"backend":{"type":"string","enum":["redis","in_process","placeholder"],"title":"Backend"},"cleared_at":{"type":"string","format":"date-time","title":"Cleared At"}},"type":"object","required":["type","keys_deleted","backend","cleared_at"],"title":"CacheClearResponse","description":"``POST /admin/dev/caches/{type}/clear`` — result of the invalidation."},"CacheTypeStats":{"properties":{"type":{"type":"string","enum":["analytics","feature_flags","dlq","health_metrics","intelligence"],"title":"Type"},"backend":{"type":"string","enum":["redis","in_process","placeholder"],"title":"Backend"},"key_count":{"type":"integer","minimum":0.0,"title":"Key Count"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"clear_supported":{"type":"boolean","title":"Clear Supported","default":true}},"type":"object","required":["type","backend","key_count"],"title":"CacheTypeStats","description":"Per-type cache size estimate."},"CachesResponse":{"properties":{"as_of":{"type":"string","format":"date-time","title":"As Of"},"caches":{"items":{"$ref":"#/components/schemas/CacheTypeStats"},"type":"array","title":"Caches"}},"type":"object","required":["as_of"],"title":"CachesResponse","description":"``GET /admin/dev/caches`` — per-type size estimate."},"CalibrationPhotoItem":{"properties":{"photo_id":{"type":"string","title":"Photo Id"},"r2_key":{"type":"string","title":"R2 Key"},"taken_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Taken At"},"analysis_id":{"type":"string","title":"Analysis Id"},"primary_species":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Species"},"corrected_species":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Corrected Species"},"confidence_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence Score"},"species_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Species Count"},"behavior":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Behavior"},"already_corrected":{"type":"boolean","title":"Already Corrected"}},"type":"object","required":["photo_id","r2_key","taken_at","analysis_id","primary_species","corrected_species","confidence_score","species_count","behavior","already_corrected"],"title":"CalibrationPhotoItem"},"CalibrationPhotosResponse":{"properties":{"calibration":{"anyOf":[{"$ref":"#/components/schemas/CalibrationStatus"},{"type":"null"}]},"photos":{"items":{"$ref":"#/components/schemas/CalibrationPhotoItem"},"type":"array","title":"Photos"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["calibration","photos","total"],"title":"CalibrationPhotosResponse"},"CalibrationQueueItem":{"properties":{"calibration_id":{"type":"string","title":"Calibration Id"},"camera_id":{"type":"string","title":"Camera Id"},"camera_name":{"type":"string","title":"Camera Name"},"calibration_type":{"type":"string","title":"Calibration Type"},"status":{"type":"string","title":"Status"},"analyses_at_trigger":{"type":"integer","title":"Analyses At Trigger"},"photos_to_review":{"type":"integer","title":"Photos To Review"},"photos_reviewed":{"type":"integer","title":"Photos Reviewed"},"corrections_made":{"type":"integer","title":"Corrections Made"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["calibration_id","camera_id","camera_name","calibration_type","status","analyses_at_trigger","photos_to_review","photos_reviewed","corrections_made","created_at"],"title":"CalibrationQueueItem"},"CalibrationResponse":{"properties":{"id":{"type":"string","title":"Id"},"camera_id":{"type":"string","title":"Camera Id"},"property_id":{"type":"string","title":"Property Id"},"calibration_type":{"type":"string","title":"Calibration Type"},"status":{"type":"string","title":"Status"},"analyses_at_trigger":{"type":"integer","title":"Analyses At Trigger"},"photos_to_review":{"type":"integer","title":"Photos To Review"},"photos_reviewed":{"type":"integer","title":"Photos Reviewed"},"corrections_made":{"type":"integer","title":"Corrections Made"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","camera_id","property_id","calibration_type","status","analyses_at_trigger","photos_to_review","photos_reviewed","corrections_made","started_at","completed_at","notes","created_at"],"title":"CalibrationResponse"},"CalibrationStatus":{"properties":{"id":{"type":"string","title":"Id"},"camera_id":{"type":"string","title":"Camera Id"},"calibration_type":{"type":"string","title":"Calibration Type"},"status":{"type":"string","title":"Status"},"photos_to_review":{"type":"integer","title":"Photos To Review"},"photos_reviewed":{"type":"integer","title":"Photos Reviewed"},"corrections_made":{"type":"integer","title":"Corrections Made"}},"type":"object","required":["id","camera_id","calibration_type","status","photos_to_review","photos_reviewed","corrections_made"],"title":"CalibrationStatus"},"CalibrationSummary":{"properties":{"total_cameras":{"type":"integer","title":"Total Cameras"},"calibrated_cameras":{"type":"integer","title":"Calibrated Cameras"},"pending_cameras":{"type":"integer","title":"Pending Cameras"},"total_corrections_from_calibration":{"type":"integer","title":"Total Corrections From Calibration"},"calibration_rate_pct":{"type":"number","title":"Calibration Rate Pct"}},"type":"object","required":["total_cameras","calibrated_cameras","pending_cameras","total_corrections_from_calibration","calibration_rate_pct"],"title":"CalibrationSummary"},"CameraComparison":{"properties":{"camera_id":{"type":"string","title":"Camera Id"},"camera_name":{"type":"string","title":"Camera Name"},"photo_count":{"type":"integer","title":"Photo Count"},"unique_species":{"type":"integer","title":"Unique Species"},"top_species":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Top Species"}},"type":"object","required":["camera_id","camera_name","photo_count","unique_species"],"title":"CameraComparison"},"CameraCreate":{"properties":{"name":{"type":"string","maxLength":255,"title":"Name"},"manufacturer":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Manufacturer"},"brand":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Brand"},"model":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Model"},"serial_number":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Serial Number"},"mode":{"anyOf":[{"$ref":"#/components/schemas/CameraMode"},{"type":"null"}]},"heading":{"anyOf":[{"$ref":"#/components/schemas/CameraHeading"},{"type":"null"}]},"latitude":{"anyOf":[{"type":"number","maximum":90.0,"minimum":-90.0},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number","maximum":180.0,"minimum":-180.0},{"type":"null"}],"title":"Longitude"},"battery_type":{"anyOf":[{"$ref":"#/components/schemas/BatteryType"},{"type":"null"}]},"placement_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Placement Notes"},"portal_type":{"$ref":"#/components/schemas/CameraPortalType","default":"manual"},"device_type_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Type Id"},"stand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stand Id"},"group_ids":{"items":{"type":"string"},"type":"array","title":"Group Ids"}},"type":"object","required":["name"],"title":"CameraCreate"},"CameraFleetBlock":{"properties":{"total_cameras":{"type":"integer","minimum":0.0,"title":"Total Cameras"},"active_cameras":{"type":"integer","minimum":0.0,"title":"Active Cameras"}},"type":"object","required":["total_cameras","active_cameras"],"title":"CameraFleetBlock","description":"Camera fleet snapshot — total + active, where ``active`` excludes\nsoft-deleted (``deleted_at IS NULL``) and ``is_active=False`` rows."},"CameraHeading":{"type":"string","enum":["N","NE","E","SE","S","SW","W","NW"],"title":"CameraHeading"},"CameraLocationSpecies":{"properties":{"camera_id":{"type":"string","title":"Camera Id"},"camera_name":{"type":"string","title":"Camera Name"},"latitude":{"type":"number","title":"Latitude"},"longitude":{"type":"number","title":"Longitude"},"species_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Species Counts"},"total_sightings":{"type":"integer","title":"Total Sightings"}},"type":"object","required":["camera_id","camera_name","latitude","longitude","species_counts","total_sightings"],"title":"CameraLocationSpecies"},"CameraMatrixCell":{"properties":{"week_start":{"type":"string","title":"Week Start"},"photo_count":{"type":"integer","title":"Photo Count"}},"type":"object","required":["week_start","photo_count"],"title":"CameraMatrixCell"},"CameraMatrixResponse":{"properties":{"property_id":{"type":"string","title":"Property Id"},"week_starts":{"items":{"type":"string"},"type":"array","title":"Week Starts"},"rows":{"items":{"$ref":"#/components/schemas/CameraMatrixRow"},"type":"array","title":"Rows"}},"type":"object","required":["property_id","week_starts","rows"],"title":"CameraMatrixResponse"},"CameraMatrixRow":{"properties":{"camera_id":{"type":"string","title":"Camera Id"},"camera_name":{"type":"string","title":"Camera Name"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At"},"battery_percent":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Battery Percent"},"signal_strength":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Signal Strength"},"weekly_counts":{"items":{"$ref":"#/components/schemas/CameraMatrixCell"},"type":"array","title":"Weekly Counts"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["camera_id","camera_name","brand","model","last_seen_at","battery_percent","signal_strength","weekly_counts","total"],"title":"CameraMatrixRow"},"CameraMissingGPS":{"properties":{"camera_id":{"type":"string","title":"Camera Id"},"camera_name":{"type":"string","title":"Camera Name"}},"type":"object","required":["camera_id","camera_name"],"title":"CameraMissingGPS"},"CameraMode":{"type":"string","enum":["photo","video","timelapse"],"title":"CameraMode"},"CameraPlacementResponse":{"properties":{"property_id":{"type":"string","title":"Property Id"},"status":{"type":"string","title":"Status"},"mode":{"type":"string","title":"Mode"},"engine_version":{"type":"string","title":"Engine Version"},"candidate_set_id":{"type":"string","title":"Candidate Set Id"},"generated_at":{"type":"string","title":"Generated At"},"max_picks":{"type":"integer","title":"Max Picks"},"audience":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audience"},"account":{"$ref":"#/components/schemas/PlacementAccount"},"actions":{"$ref":"#/components/schemas/PlacementActions"},"picks":{"items":{"$ref":"#/components/schemas/PlacementPick"},"type":"array","title":"Picks"},"inputs_used":{"additionalProperties":true,"type":"object","title":"Inputs Used"},"disclosures":{"items":{"$ref":"#/components/schemas/PlacementDisclosure"},"type":"array","title":"Disclosures"}},"type":"object","required":["property_id","status","mode","engine_version","candidate_set_id","generated_at","max_picks","audience","account","actions","picks","inputs_used","disclosures"],"title":"CameraPlacementResponse"},"CameraPortalCreate":{"properties":{"provider":{"$ref":"#/components/schemas/CameraPortalType"},"label":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Label"},"portal_username":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Portal Username"},"portal_password":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Portal Password"},"sync_window_days":{"type":"integer","maximum":365.0,"minimum":1.0,"title":"Sync Window Days","default":30}},"type":"object","required":["provider"],"title":"CameraPortalCreate"},"CameraPortalResponse":{"properties":{"id":{"type":"string","title":"Id"},"property_id":{"type":"string","title":"Property Id"},"provider":{"$ref":"#/components/schemas/CameraPortalType"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"portal_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Portal Username"},"sync_window_days":{"type":"integer","title":"Sync Window Days"},"last_synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Synced At"},"sync_status":{"type":"string","title":"Sync Status"},"sync_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sync Error"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","property_id","provider","label","portal_username","sync_window_days","last_synced_at","sync_status","sync_error","is_active","created_at","updated_at"],"title":"CameraPortalResponse"},"CameraPortalType":{"type":"string","enum":["manual","spypoint","moultrie","stealth_cam","reconyx","tactacam_reveal","tactacam_defend","spartan","cuddelink","wildgame_innovations"],"title":"CameraPortalType"},"CameraPortalUpdate":{"properties":{"label":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Label"},"portal_username":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Portal Username"},"portal_password":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Portal Password"},"sync_window_days":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":1.0},{"type":"null"}],"title":"Sync Window Days"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"CameraPortalUpdate"},"CameraResponse":{"properties":{"id":{"type":"string","title":"Id"},"property_id":{"type":"string","title":"Property Id"},"name":{"type":"string","title":"Name"},"manufacturer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manufacturer"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"serial_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serial Number"},"mode":{"anyOf":[{"$ref":"#/components/schemas/CameraMode"},{"type":"null"}]},"heading":{"anyOf":[{"$ref":"#/components/schemas/CameraHeading"},{"type":"null"}]},"latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Longitude"},"battery_type":{"anyOf":[{"$ref":"#/components/schemas/BatteryType"},{"type":"null"}]},"placement_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Placement Notes"},"is_active":{"type":"boolean","title":"Is Active"},"portal_type":{"$ref":"#/components/schemas/CameraPortalType"},"portal_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Portal Id"},"device_type_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Type Id"},"stand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stand Id"},"group_ids":{"items":{"type":"string"},"type":"array","title":"Group Ids"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"photo_count":{"type":"integer","title":"Photo Count","default":0},"battery_percent":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Battery Percent"},"signal_strength":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Signal Strength"},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At"},"temperature_f":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature F"}},"type":"object","required":["id","property_id","name","brand","model","serial_number","latitude","longitude","placement_notes","is_active","portal_type","created_at","updated_at"],"title":"CameraResponse"},"CameraStats":{"properties":{"camera_id":{"type":"string","title":"Camera Id"},"camera_name":{"type":"string","title":"Camera Name"},"photo_count":{"type":"integer","title":"Photo Count"},"last_activity":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Activity"},"top_species":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Top Species"}},"type":"object","required":["camera_id","camera_name","photo_count","last_activity","top_species"],"title":"CameraStats"},"CameraUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Name"},"manufacturer":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Manufacturer"},"brand":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Brand"},"model":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Model"},"serial_number":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Serial Number"},"mode":{"anyOf":[{"$ref":"#/components/schemas/CameraMode"},{"type":"null"}]},"heading":{"anyOf":[{"$ref":"#/components/schemas/CameraHeading"},{"type":"null"}]},"latitude":{"anyOf":[{"type":"number","maximum":90.0,"minimum":-90.0},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number","maximum":180.0,"minimum":-180.0},{"type":"null"}],"title":"Longitude"},"battery_type":{"anyOf":[{"$ref":"#/components/schemas/BatteryType"},{"type":"null"}]},"placement_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Placement Notes"},"portal_type":{"anyOf":[{"$ref":"#/components/schemas/CameraPortalType"},{"type":"null"}]},"portal_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Portal Id"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"device_type_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Type Id"},"stand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stand Id"},"group_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Group Ids"}},"type":"object","title":"CameraUpdate"},"CaseStudyCreateRequest":{"properties":{"property_id":{"type":"string","format":"uuid","title":"Property Id"},"title":{"type":"string","maxLength":255,"minLength":1,"title":"Title"},"date_range_start":{"type":"string","format":"date","title":"Date Range Start"},"date_range_end":{"type":"string","format":"date","title":"Date Range End"}},"type":"object","required":["property_id","title","date_range_start","date_range_end"],"title":"CaseStudyCreateRequest"},"CaseStudyCreateResponse":{"properties":{"case_study_id":{"type":"string","title":"Case Study Id"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["case_study_id","status","created_at"],"title":"CaseStudyCreateResponse"},"CaseStudyEntry":{"properties":{"id":{"type":"string","title":"Id"},"profile_id":{"type":"string","title":"Profile Id"},"property_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Id"},"title":{"type":"string","title":"Title"},"status":{"type":"string","title":"Status"},"date_range_start":{"type":"string","format":"date","title":"Date Range Start"},"date_range_end":{"type":"string","format":"date","title":"Date Range End"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"generated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Generated At"},"page_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page Count"},"file_size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"File Size Bytes"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"property_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Name"},"html_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html Url"},"pdf_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pdf Url"}},"type":"object","required":["id","profile_id","property_id","title","status","date_range_start","date_range_end","created_at","generated_at","page_count","file_size_bytes","error_message"],"title":"CaseStudyEntry"},"CaseStudyListResponse":{"properties":{"case_studies":{"items":{"$ref":"#/components/schemas/CaseStudyEntry"},"type":"array","title":"Case Studies"}},"type":"object","required":["case_studies"],"title":"CaseStudyListResponse"},"CheckInMethod":{"type":"string","enum":["check_station","online"],"title":"CheckInMethod","description":"How the harvest was reported to the state — physical check\nstation vs online portal."},"CheckoutRequest":{"properties":{"price_id":{"type":"string","title":"Price Id"},"success_url":{"type":"string","title":"Success Url"},"cancel_url":{"type":"string","title":"Cancel Url"},"promo_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Promo Code"}},"type":"object","required":["price_id","success_url","cancel_url"],"title":"CheckoutRequest"},"CheckoutResponse":{"properties":{"checkout_url":{"type":"string","title":"Checkout Url"}},"type":"object","required":["checkout_url"],"title":"CheckoutResponse"},"ClaimInviteRequest":{"properties":{"token":{"type":"string","minLength":8,"title":"Token"},"supabase_user_id":{"type":"string","title":"Supabase User Id"}},"type":"object","required":["token","supabase_user_id"],"title":"ClaimInviteRequest","description":"Body for ``POST /auth/claim-invite``.\n\nCalled by the invite landing page right after a successful\n``supabase.auth.signUp``. The Supabase user id is what links\n``auth.users.id`` → ``profiles.supabase_user_id``."},"ClearResponse":{"properties":{"cleared":{"type":"integer","title":"Cleared"},"cleared_ids":{"items":{"type":"string"},"type":"array","title":"Cleared Ids"},"cleared_to_status":{"type":"string","title":"Cleared To Status","description":"The terminal status the rows were written to. 'failed' rather than 'skipped' because photos.skip_reason is CHECK-constrained to 'duplicate'.","default":"failed"},"now_listed_in":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Now Listed In","description":"Where the cleared rows can now be found — 'admin_failed_analysis_queue' (GET /admin/ai/failed-analyses on the AI Intelligence page). NULL when nothing was cleared, so a no-op Clear never claims a destination.\n\nStates a FACT about where the rows went, deliberately not a promise that retrying them will help: that queue's Retry runs reanalyze_photo, which skips Claude entirely for blank- and human-classified frames, so a retry there can legitimately reproduce the same result. See EnsembleResult.claude_skip_reason."},"skipped_ids":{"items":{"type":"string"},"type":"array","title":"Skipped Ids","description":"Ids that were addressed but not acted on — unknown, soft-deleted, or no longer non-terminal (e.g. completed between the list and the action). Reported rather than silently dropped."}},"type":"object","required":["cleared","cleared_ids"],"title":"ClearResponse","description":"Result of marking rows terminal.\n\n'Clear' writes ``failed`` and nothing else: there is no scheduled\nCelery retry to revoke for a row this old, and no task id is stored\nto revoke with. See ``stuck_analysis_service`` for the probe that\nestablished that."},"ClientHuntHistorySafe":{"properties":{"id":{"type":"string","title":"Id"},"hunt_date":{"type":"string","format":"date","title":"Hunt Date"},"outcome":{"type":"string","title":"Outcome"},"species_taxon_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species Taxon Id"},"stand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stand Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["id","hunt_date","outcome","species_taxon_id","stand_id","notes"],"title":"ClientHuntHistorySafe"},"ClientHuntPlanSummary":{"properties":{"id":{"type":"string","title":"Id"},"hunt_date":{"type":"string","format":"date","title":"Hunt Date"},"window":{"additionalProperties":true,"type":"object","title":"Window"},"stand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stand Id"},"client_rationale":{"additionalProperties":true,"type":"object","title":"Client Rationale"}},"type":"object","required":["id","hunt_date","window","stand_id","client_rationale"],"title":"ClientHuntPlanSummary"},"ClientResponse":{"properties":{"id":{"type":"string","title":"Id"},"profile_id":{"type":"string","title":"Profile Id"},"role":{"type":"string","title":"Role"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","profile_id","role","created_at"],"title":"ClientResponse"},"CompleteBody":{"properties":{"outcome":{"type":"string","maxLength":32,"minLength":1,"title":"Outcome"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["outcome"],"title":"CompleteBody"},"CompleteCalibrationRequest":{"properties":{"notes":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Notes"}},"type":"object","title":"CompleteCalibrationRequest"},"CompleteSetupResponse":{"properties":{"property_id":{"type":"string","title":"Property Id"},"setup_complete":{"type":"boolean","title":"Setup Complete"}},"type":"object","required":["property_id","setup_complete"],"title":"CompleteSetupResponse","description":"Result of the onboarding required-field validation + flag flip (CC-1)."},"CompleteZipUploadRequest":{"properties":{"batch_id":{"type":"string","title":"Batch Id"},"upload_id":{"type":"string","title":"Upload Id"},"parts":{"items":{"$ref":"#/components/schemas/CompletedPart"},"type":"array","maxItems":10000,"minItems":1,"title":"Parts"},"camera_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Id"}},"type":"object","required":["batch_id","upload_id","parts"],"title":"CompleteZipUploadRequest"},"CompleteZipUploadResponse":{"properties":{"batch_id":{"type":"string","title":"Batch Id"},"status":{"$ref":"#/components/schemas/UploadBatchStatus"},"queued":{"type":"boolean","title":"Queued"}},"type":"object","required":["batch_id","status","queued"],"title":"CompleteZipUploadResponse"},"CompletedPart":{"properties":{"PartNumber":{"type":"integer","title":"Partnumber"},"ETag":{"type":"string","title":"Etag"}},"type":"object","required":["PartNumber","ETag"],"title":"CompletedPart"},"ConfirmUploadRequest":{"properties":{"sha256_hash":{"type":"string","maxLength":64,"minLength":64,"title":"Sha256 Hash"}},"type":"object","required":["sha256_hash"],"title":"ConfirmUploadRequest"},"ConsentBody":{"properties":{"analytics":{"type":"boolean","title":"Analytics","default":false},"marketing":{"type":"boolean","title":"Marketing","default":false}},"type":"object","title":"ConsentBody"},"ConsentResponse":{"properties":{"necessary":{"type":"boolean","title":"Necessary"},"analytics":{"type":"boolean","title":"Analytics"},"marketing":{"type":"boolean","title":"Marketing"},"has_consented":{"type":"boolean","title":"Has Consented"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"policy_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Version"},"gpc_signal":{"type":"boolean","title":"Gpc Signal","default":false},"needs_reconsent":{"type":"boolean","title":"Needs Reconsent","default":false}},"type":"object","required":["necessary","analytics","marketing","has_consented"],"title":"ConsentResponse"},"CorrectedAttribute":{"properties":{"original_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Value"},"corrected_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Corrected Value"},"is_corrected":{"type":"boolean","title":"Is Corrected","default":false}},"type":"object","title":"CorrectedAttribute","description":"Per-attribute correction state for one subject (FR8). COALESCE'd from the\n``analysis_corrections`` table (Phase 4) over the AI value: ``original_value``\nis the AI value at correction time, ``corrected_value`` the user's submission,\n``is_corrected`` true when a correction exists. Absent until Phase 4 wires the\nread — in the Phase 3 contract ``SubjectResult.corrected`` is always null."},"CorrectionListMeta":{"properties":{"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"per_page":{"type":"integer","minimum":1.0,"title":"Per Page"}},"type":"object","required":["total","page","per_page"],"title":"CorrectionListMeta"},"CorrectionListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/CorrectionRow"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/CorrectionListMeta"}},"type":"object","required":["meta"],"title":"CorrectionListResponse"},"CorrectionMemoryBlock":{"properties":{"top_corrections":{"items":{"$ref":"#/components/schemas/CorrectionPair"},"type":"array","title":"Top Corrections"},"corrections_this_month":{"type":"integer","minimum":0.0,"title":"Corrections This Month"},"analyses_this_month":{"type":"integer","minimum":0.0,"title":"Analyses This Month"},"acceptance_rate_pct":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Acceptance Rate Pct"},"vocabulary_only_count":{"type":"integer","minimum":0.0,"title":"Vocabulary Only Count","default":0}},"type":"object","required":["corrections_this_month","analyses_this_month"],"title":"CorrectionMemoryBlock","description":"Correction memory queue stats for the admin dashboard.\n\n``acceptance_rate_pct`` is computed as\n``(corrections_this_month / analyses_this_month) * 100`` — the\nshare of analyses the user judged worth correcting in the\ncurrent calendar month. ``None`` when there were zero analyses\nin the month (avoids a 0/0 surprise)."},"CorrectionPair":{"properties":{"original_species":{"type":"string","title":"Original Species"},"corrected_species":{"type":"string","title":"Corrected Species"},"frequency":{"type":"integer","minimum":1.0,"title":"Frequency"},"last_corrected_at":{"type":"string","format":"date-time","title":"Last Corrected At"}},"type":"object","required":["original_species","corrected_species","frequency","last_corrected_at"],"title":"CorrectionPair","description":"One ``(original → corrected)`` correction pair aggregated\nacross every property. Frequency is summed; last_corrected_at\nis the most recent across the matching rows."},"CorrectionReviewBatchRequest":{"properties":{"correction_event_ids":{"items":{"type":"string"},"type":"array","maxItems":200,"minItems":1,"title":"Correction Event Ids"},"status":{"type":"string","enum":["approved","rejected"],"title":"Status"},"classification":{"anyOf":[{"type":"string","enum":["model_miss","vocabulary","user_error","test_data"]},{"type":"null"}],"title":"Classification"},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Notes"}},"type":"object","required":["correction_event_ids","status"],"title":"CorrectionReviewBatchRequest"},"CorrectionReviewBatchResponse":{"properties":{"created":{"type":"integer","minimum":0.0,"title":"Created"},"updated":{"type":"integer","minimum":0.0,"title":"Updated"},"not_found":{"items":{"type":"string"},"type":"array","title":"Not Found"}},"type":"object","required":["created","updated"],"title":"CorrectionReviewBatchResponse"},"CorrectionReviewInfo":{"properties":{"status":{"type":"string","enum":["approved","rejected"],"title":"Status"},"classification":{"anyOf":[{"type":"string","enum":["model_miss","vocabulary","user_error","test_data"]},{"type":"null"}],"title":"Classification"},"reviewer_id":{"type":"string","title":"Reviewer Id"},"reviewer_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewer Email"},"reviewed_at":{"type":"string","format":"date-time","title":"Reviewed At"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["status","reviewer_id","reviewed_at"],"title":"CorrectionReviewInfo","description":"The review attached to a correction, when one exists."},"CorrectionReviewRequest":{"properties":{"status":{"type":"string","enum":["approved","rejected"],"title":"Status"},"classification":{"anyOf":[{"type":"string","enum":["model_miss","vocabulary","user_error","test_data"]},{"type":"null"}],"title":"Classification"},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Notes"}},"type":"object","required":["status"],"title":"CorrectionReviewRequest"},"CorrectionReviewResponse":{"properties":{"correction_event_id":{"type":"string","title":"Correction Event Id"},"status":{"type":"string","enum":["approved","rejected"],"title":"Status"},"classification":{"anyOf":[{"type":"string","enum":["model_miss","vocabulary","user_error","test_data"]},{"type":"null"}],"title":"Classification"},"reviewed_at":{"type":"string","format":"date-time","title":"Reviewed At"},"created":{"type":"boolean","title":"Created"}},"type":"object","required":["correction_event_id","status","reviewed_at","created"],"title":"CorrectionReviewResponse"},"CorrectionRow":{"properties":{"correction_event_id":{"type":"string","title":"Correction Event Id"},"photo_id":{"type":"string","title":"Photo Id"},"analysis_id":{"type":"string","title":"Analysis Id"},"subject_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Id"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"property_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Id"},"property_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Name"},"org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Name"},"actor_user_id":{"type":"string","title":"Actor User Id"},"actor_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Email"},"attribute":{"type":"string","title":"Attribute"},"old_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Old Value"},"new_value":{"type":"string","title":"New Value"},"vocabulary_only":{"type":"boolean","title":"Vocabulary Only","default":false},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"},"review":{"anyOf":[{"$ref":"#/components/schemas/CorrectionReviewInfo"},{"type":"null"}]}},"type":"object","required":["correction_event_id","photo_id","analysis_id","actor_user_id","attribute","new_value","occurred_at"],"title":"CorrectionRow","description":"One correction in the moderation queue, with the context needed to judge it.\n\nOrg / property / actor are present because an admin cannot tell test data\nfrom a real customer without them — which matters immediately, since every\ncorrection in production today comes from an internal account."},"CorridorCamera":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"CorridorCamera","description":"Nested camera reference (Asana 1215159577118537, M3).\nThe flat ``from_camera_id`` / ``from_camera_name`` (and to_ pair)\nfields above continue to populate alongside this nested shape per\nR17 / Strict R7. Frontend should consume ``from_camera``/``to_camera``\ngoing forward; the flat fields drop post-BETA once Cat 1 wiring\nconfirms no remaining consumers."},"CorridorDisclosure":{"properties":{"grain":{"type":"string","title":"Grain","default":"photo"},"window":{"$ref":"#/components/schemas/CorridorWindowDisclosure"},"frames_in_window":{"type":"integer","title":"Frames In Window"},"analyzed":{"type":"integer","title":"Analyzed"},"excluded_no_animal":{"type":"integer","title":"Excluded No Animal"},"excluded_human":{"type":"integer","title":"Excluded Human","default":0},"excluded_unknown":{"type":"integer","title":"Excluded Unknown","default":0},"encounter_sampled":{"type":"integer","title":"Encounter Sampled"},"duplicate":{"type":"integer","title":"Duplicate"},"unanalyzed":{"type":"integer","title":"Unanalyzed"},"unanalyzed_pending":{"type":"integer","title":"Unanalyzed Pending"},"unanalyzed_failed":{"type":"integer","title":"Unanalyzed Failed"},"unanalyzed_no_cv_result":{"type":"integer","title":"Unanalyzed No Cv Result","default":0},"skipped_other":{"type":"integer","title":"Skipped Other"},"detections":{"type":"integer","title":"Detections"}},"type":"object","required":["window","frames_in_window","analyzed","excluded_no_animal","encounter_sampled","duplicate","unanalyzed","unanalyzed_pending","unanalyzed_failed","skipped_other","detections"],"title":"CorridorDisclosure","description":"WLAI-90 / ruling 12 frame disclosure for every corridor response.\n\nPhoto-grain counts over the same property + window scope as the detections\n(live photos only), independent of any species filter. ADDITIVE: optional on\nevery response model so an N-1 payload / a pre-WLAI-90 cache entry without\nit still validates."},"CorridorPath":{"properties":{"from_camera_id":{"type":"string","title":"From Camera Id"},"from_camera_name":{"type":"string","title":"From Camera Name"},"to_camera_id":{"type":"string","title":"To Camera Id"},"to_camera_name":{"type":"string","title":"To Camera Name"},"from_camera":{"$ref":"#/components/schemas/CorridorCamera"},"to_camera":{"$ref":"#/components/schemas/CorridorCamera"},"species":{"type":"string","title":"Species"},"movement_count":{"type":"integer","title":"Movement Count"},"avg_transit_hours":{"type":"number","title":"Avg Transit Hours"},"distance_km":{"type":"number","title":"Distance Km"},"confidence":{"type":"number","title":"Confidence"},"path":{"items":{"$ref":"#/components/schemas/CorridorPathPoint"},"type":"array","title":"Path"},"first_seen":{"type":"string","format":"date-time","title":"First Seen"},"last_seen":{"type":"string","format":"date-time","title":"Last Seen"}},"type":"object","required":["from_camera_id","from_camera_name","to_camera_id","to_camera_name","from_camera","to_camera","species","movement_count","avg_transit_hours","distance_km","confidence","path","first_seen","last_seen"],"title":"CorridorPath"},"CorridorPathPoint":{"properties":{"latitude":{"type":"number","title":"Latitude"},"longitude":{"type":"number","title":"Longitude"}},"type":"object","required":["latitude","longitude"],"title":"CorridorPathPoint"},"CorridorResponse":{"properties":{"corridors":{"items":{"$ref":"#/components/schemas/MovementCorridor"},"type":"array","title":"Corridors"},"total":{"type":"integer","title":"Total"},"disclosure":{"anyOf":[{"$ref":"#/components/schemas/CorridorDisclosure"},{"type":"null"}]}},"type":"object","required":["corridors","total"],"title":"CorridorResponse"},"CorridorResponsePro":{"properties":{"property_id":{"type":"string","title":"Property Id"},"species":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species"},"days":{"type":"integer","title":"Days"},"corridors":{"items":{"$ref":"#/components/schemas/CorridorPath"},"type":"array","title":"Corridors"},"total":{"type":"integer","title":"Total"},"disclosure":{"anyOf":[{"$ref":"#/components/schemas/CorridorDisclosure"},{"type":"null"}]}},"type":"object","required":["property_id","days","corridors","total"],"title":"CorridorResponsePro"},"CorridorSummary":{"properties":{"total_corridors":{"type":"integer","title":"Total Corridors"},"unique_species_moving":{"type":"integer","title":"Unique Species Moving"},"most_active_corridor":{"anyOf":[{"$ref":"#/components/schemas/MostActiveCorridor"},{"type":"null"}]},"busiest_hour":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Busiest Hour"},"avg_transit_speed_kmh":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Transit Speed Kmh"},"total_movement_events":{"type":"integer","title":"Total Movement Events"},"disclosure":{"anyOf":[{"$ref":"#/components/schemas/CorridorDisclosure"},{"type":"null"}]}},"type":"object","required":["total_corridors","unique_species_moving","total_movement_events"],"title":"CorridorSummary"},"CorridorWindowDisclosure":{"properties":{"date_from":{"type":"string","format":"date-time","title":"Date From"},"date_to":{"type":"string","format":"date-time","title":"Date To"},"days":{"type":"integer","title":"Days"},"anchor":{"type":"string","title":"Anchor"}},"type":"object","required":["date_from","date_to","days","anchor"],"title":"CorridorWindowDisclosure","description":"The capture-time window a corridor computation actually used (WLAI-90).\n\n``date_to`` is the property's newest live capture frame; ``date_from`` is\n``date_to - days``. ``anchor`` is ``newest_frame`` or, for a property with no\ncapture-timed photo, ``now``."},"CreateAccountRequest":{"properties":{"type":{"type":"string","enum":["outfitter","individual"],"title":"Type"},"email":{"type":"string","maxLength":320,"minLength":3,"title":"Email"},"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Name"},"organization_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Organization Name"},"staff_seats_purchased":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Staff Seats Purchased"},"client_seats_purchased":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Client Seats Purchased"},"assign_temp_password":{"type":"boolean","title":"Assign Temp Password","default":false},"temp_password":{"anyOf":[{"type":"string","maxLength":128,"minLength":8},{"type":"null"}],"title":"Temp Password"}},"type":"object","required":["type","email"],"title":"CreateAccountRequest","description":"Body for ``POST /admin/create-account``.\n\nOnly ``individual`` is accepted: it creates a Profile and a default\n\"My Property\" with a PropertyMember row. No Organization is created.\n\n``outfitter`` is refused with a 422 (WLAI-399) that points the caller\nto ``POST /admin/organizations``."},"CreateAccountResponse":{"properties":{"profile_id":{"type":"string","title":"Profile Id"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"default_property_id":{"type":"string","title":"Default Property Id"},"supabase_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supabase User Id"},"temp_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Temp Password"},"temp_password_generated":{"type":"boolean","title":"Temp Password Generated","default":false},"must_change_password":{"type":"boolean","title":"Must Change Password","default":false}},"type":"object","required":["profile_id","default_property_id"],"title":"CreateAccountResponse","description":"Returned by ``POST /admin/create-account``.\n\n``organization_id`` is None for individual accounts.\n``default_property_id`` is always present — both account types\nget an OOTB property.\n\nWhen ``assign_temp_password`` was set on the request, the\nresponse carries the generated ``temp_password`` (the only\nmoment it is visible — it is never persisted plaintext) plus\nthe linked ``supabase_user_id`` so the operator can confirm\nthe auth.users row was created."},"CreateAnalysisACLRequest":{"properties":{"analysis_id":{"type":"string","title":"Analysis Id"},"profile_id":{"type":"string","title":"Profile Id"},"permission":{"type":"string","enum":["read","write"],"title":"Permission"}},"type":"object","required":["analysis_id","profile_id","permission"],"title":"CreateAnalysisACLRequest"},"CreateBillingCustomerRequest":{"properties":{"organization_id":{"type":"string","title":"Organization Id"}},"type":"object","required":["organization_id"],"title":"CreateBillingCustomerRequest"},"CreateBillingCustomerResponse":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"stripe_customer_id":{"type":"string","title":"Stripe Customer Id"}},"type":"object","required":["organization_id","stripe_customer_id"],"title":"CreateBillingCustomerResponse"},"CreateBillingSubscriptionRequest":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"tier":{"$ref":"#/components/schemas/SubscriptionTier"},"seats":{"type":"integer","minimum":1.0,"title":"Seats","default":1}},"type":"object","required":["organization_id","tier"],"title":"CreateBillingSubscriptionRequest"},"CreateBillingSubscriptionResponse":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"stripe_subscription_id":{"type":"string","title":"Stripe Subscription Id"},"tier":{"$ref":"#/components/schemas/SubscriptionTier"},"seats_purchased":{"type":"integer","title":"Seats Purchased"}},"type":"object","required":["organization_id","stripe_subscription_id","tier","seats_purchased"],"title":"CreateBillingSubscriptionResponse"},"CreateCameraACLRequest":{"properties":{"camera_id":{"type":"string","title":"Camera Id"},"profile_id":{"type":"string","title":"Profile Id"},"permission":{"type":"string","enum":["read","write"],"title":"Permission"}},"type":"object","required":["camera_id","profile_id","permission"],"title":"CreateCameraACLRequest"},"CreateHuntPlanBody":{"properties":{"client_id":{"type":"string","title":"Client Id"},"property_id":{"type":"string","title":"Property Id"},"stand_id":{"type":"string","title":"Stand Id"},"species_taxon_id":{"type":"string","title":"Species Taxon Id"},"hunt_date":{"type":"string","format":"date","title":"Hunt Date"},"window":{"additionalProperties":true,"type":"object","title":"Window"},"rationale":{"additionalProperties":true,"type":"object","title":"Rationale"},"client_rationale":{"additionalProperties":true,"type":"object","title":"Client Rationale"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["client_id","property_id","stand_id","species_taxon_id","hunt_date"],"title":"CreateHuntPlanBody"},"CreateInviteRequest":{"properties":{"email":{"type":"string","maxLength":320,"minLength":3,"title":"Email"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"role":{"anyOf":[{"$ref":"#/components/schemas/OrganizationRole"},{"type":"null"}]}},"type":"object","required":["email"],"title":"CreateInviteRequest","description":"Body for ``POST /admin/invite``.\n\n``organization_id`` and ``role`` are both optional — invites for\nindividual accounts (no org) leave both NULL; invites for outfitter\nteams set both. The schema doesn't try to enforce \"role required\nwhen organization_id present\" — the service layer treats a NULL\nrole as \"no membership row created on claim\", which is also a\nlegitimate intent (e.g. invite to an existing org without a\nrole yet)."},"CreateInviteResponse":{"properties":{"invite_id":{"type":"string","title":"Invite Id"},"email":{"type":"string","title":"Email"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"role":{"anyOf":[{"$ref":"#/components/schemas/OrganizationRole"},{"type":"null"}]},"token":{"type":"string","title":"Token"},"invite_url":{"type":"string","title":"Invite Url"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"notification_sent":{"type":"boolean","title":"Notification Sent","default":false},"notification_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notification Status"},"notification_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notification Error"}},"type":"object","required":["invite_id","email","token","invite_url","expires_at"],"title":"CreateInviteResponse","description":"Returned by ``POST /invite`` and ``POST /admin/invite``.\n\n``invite_url`` is the user-facing link, and it is returned on the SUCCESS\nbody — which is what lets WLAI-268 drop the 502 without losing anything.\nThe old failure envelope echoed ``invite_url`` specifically so an admin\ncould still deliver by hand; that fallback is unchanged, it just arrives\non a 201 now. ``token`` is also returned for tooling that wants to embed\nthe invite in a custom template.\n\nThe ``notification_*`` triple is WLAI-268, and matches\n``MemberInviteResponse`` field-for-field so one frontend helper can read\nevery invite surface. The invite row is the operation and owns the status\ncode; the email is a notification and reports separately. See\n``MemberInviteResponse`` in ``app.schemas.property`` for the full\nrationale.\n\nBoth routes on this schema send unconditionally once the invite row\nexists, so ``notification_status`` is in practice never null here — the\nnullable type is carried for shape-compatibility with the property\nsurfaces, which do have a no-send-attempted path.\n\nThis schema is create-only (``POST /invite`` and ``POST /admin/invite``\nare its only two constructors — ``GET /invites`` and the landing lookup\nuse different shapes), so the fields go on it directly. The property\nsurface needed a subclass instead, because there the base shape is also\nthe GET-list shape."},"CreateOutfitterRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"CreateOutfitterRequest"},"CreatePropertyACLRequest":{"properties":{"property_id":{"type":"string","title":"Property Id"},"profile_id":{"type":"string","title":"Profile Id"},"permission":{"type":"string","enum":["read","write"],"title":"Permission"}},"type":"object","required":["property_id","profile_id","permission"],"title":"CreatePropertyACLRequest"},"CreateTeamMemberRequest":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"email":{"type":"string","maxLength":320,"minLength":3,"title":"Email"},"role":{"$ref":"#/components/schemas/OrganizationRole","default":"member"},"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Name"}},"type":"object","required":["organization_id","email"],"title":"CreateTeamMemberRequest","description":"Body for ``POST /admin/create-team-member``.\n\nAdds a new Profile to an existing Organization with a role.\nThe new Profile also gets a default \"My Property\" so they have\na workspace to navigate into on first login (consistent with\nindividual accounts — minimum-viable empty state)."},"CreateTeamMemberResponse":{"properties":{"profile_id":{"type":"string","title":"Profile Id"},"organization_id":{"type":"string","title":"Organization Id"},"membership_id":{"type":"string","title":"Membership Id"},"default_property_id":{"type":"string","title":"Default Property Id"},"role":{"$ref":"#/components/schemas/OrganizationRole"}},"type":"object","required":["profile_id","organization_id","membership_id","default_property_id","role"],"title":"CreateTeamMemberResponse"},"CreateTicketRequest":{"properties":{"subject":{"type":"string","maxLength":500,"minLength":5,"title":"Subject"},"body":{"type":"string","maxLength":10000,"minLength":10,"title":"Body"},"category":{"type":"string","title":"Category","default":"other"},"priority":{"type":"string","title":"Priority","default":"normal"}},"type":"object","required":["subject","body"],"title":"CreateTicketRequest"},"CsvIngestResponse":{"properties":{"batch_id":{"type":"string","title":"Batch Id"},"csv_r2_key":{"type":"string","title":"Csv R2 Key"},"status":{"type":"string","title":"Status","default":"pending"}},"type":"object","required":["batch_id","csv_r2_key"],"title":"CsvIngestResponse","description":"Returned immediately after a CSV upload — the batch is now\nqueued for background processing. Poll\n/ingest/batch/{batch_id}/items to watch progress."},"CursorPaginatedResponse_PhotoListResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/PhotoListResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/CursorPaginationMeta"},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","required":["data","meta"],"title":"CursorPaginatedResponse[PhotoListResponse]"},"CursorPaginationMeta":{"properties":{"per_page":{"type":"integer","title":"Per Page"},"has_more":{"type":"boolean","title":"Has More"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"}},"type":"object","required":["per_page","has_more"],"title":"CursorPaginationMeta"},"CustomDomainDnsRecord":{"properties":{"purpose":{"type":"string","title":"Purpose"},"type":{"type":"string","title":"Type"},"name":{"type":"string","title":"Name"},"value":{"type":"string","title":"Value"}},"type":"object","required":["purpose","type","name","value"],"title":"CustomDomainDnsRecord","description":"One record to publish at the outfitter's DNS provider.\n\n``purpose`` is ``routing`` (the CNAME), ``ownership`` and ``certificate``\n(Cloudflare's TXT records), or ``vercel_verification`` (only when Vercel\nasks for a challenge). Fetched live on every read, never stored."},"CustomDomainResponse":{"properties":{"hostname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hostname"},"status":{"$ref":"#/components/schemas/DomainVerificationStatus"},"available":{"type":"boolean","title":"Available"},"dns_records":{"items":{"$ref":"#/components/schemas/CustomDomainDnsRecord"},"type":"array","title":"Dns Records"},"errors":{"items":{"type":"string"},"type":"array","title":"Errors"}},"type":"object","required":["hostname","status","available"],"title":"CustomDomainResponse"},"CustomDomainSetRequest":{"properties":{"hostname":{"type":"string","maxLength":253,"minLength":1,"title":"Hostname"}},"type":"object","required":["hostname"],"title":"CustomDomainSetRequest"},"DailyForecast":{"properties":{"date":{"type":"string","format":"date","title":"Date"},"high_f":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"High F"},"low_f":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Low F"},"condition":{"type":"string","title":"Condition"},"icon":{"type":"string","title":"Icon"},"max_wind_mph":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Wind Mph"},"moon_phase":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Moon Phase"}},"type":"object","required":["date","condition","icon"],"title":"DailyForecast","description":"Per-day rollup derived from the hourly window. Powers the\nweather widget's 3-day strip. ``condition``/``icon`` carry the same\nslug (``clear`` / ``partly_cloudy`` / ``cloudy`` / ``rain``) — the\nforecast provider has no WMO code, so the condition is derived from\nthe day's precipitation probability + mean cloud cover."},"DashboardSummaryResponse":{"properties":{"platform_health":{"$ref":"#/components/schemas/PlatformHealthSummary"},"actions_needed":{"$ref":"#/components/schemas/ActionsNeededSummary"}},"type":"object","required":["platform_health","actions_needed"],"title":"DashboardSummaryResponse"},"DataRightsRequest":{"properties":{"details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Details"}},"type":"object","title":"DataRightsRequest","description":"Optional context for a self-service DSAR. ``request_type`` and\n``email`` are server-derived from the authenticated caller."},"DeployBannerResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled","description":"Whether the banner should be displayed."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message","description":"Operator-authored banner copy. Null when unset or when the flag is off."}},"type":"object","required":["enabled"],"title":"DeployBannerResponse","description":"Platform-wide release-in-progress banner.\n\nDeliberately two fields. The banner is rendered to anonymous callers\non the login screen, so the payload is an allowlist, never a\nprojection of the underlying ``feature_toggles`` row — see\n``FeatureToggleService.get_deploy_banner``."},"DesktopUploadInitRequest":{"properties":{"property_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Id"},"hostname":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Hostname"},"expected_files":{"type":"integer","maximum":100000.0,"minimum":1.0,"title":"Expected Files"}},"type":"object","required":["expected_files"],"title":"DesktopUploadInitRequest"},"DesktopUploadInitResponse":{"properties":{"batch_id":{"type":"string","title":"Batch Id"},"upload_token":{"type":"string","title":"Upload Token"}},"type":"object","required":["batch_id","upload_token"],"title":"DesktopUploadInitResponse"},"DevWipeRequest":{"properties":{"confirm":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confirm"},"reseed_founders":{"type":"boolean","title":"Reseed Founders","default":false},"reseed_taxonomy":{"type":"boolean","title":"Reseed Taxonomy","default":false},"reseed_oems":{"type":"boolean","title":"Reseed Oems","default":false}},"type":"object","title":"DevWipeRequest","description":"Body for ``POST /admin/dev/wipe``.\n\nUses a literal string (``\"WIPE\"``) rather than a boolean so a typo,\nmissing form field, or an empty JSON ``{}`` can't flip this into\ndestructive mode. The frontend sets this exactly once, from a\nmodal confirmation dialog."},"DeviceGroupCreate":{"properties":{"name":{"type":"string","maxLength":255,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["name"],"title":"DeviceGroupCreate"},"DeviceGroupMemberAdd":{"properties":{"camera_ids":{"items":{"type":"string"},"type":"array","title":"Camera Ids"}},"type":"object","title":"DeviceGroupMemberAdd"},"DeviceGroupResponse":{"properties":{"id":{"type":"string","title":"Id"},"property_id":{"type":"string","title":"Property Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"camera_count":{"type":"integer","title":"Camera Count","default":0},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","property_id","name","created_at","updated_at"],"title":"DeviceGroupResponse"},"DeviceGroupUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","title":"DeviceGroupUpdate"},"DeviceTypeResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"label":{"type":"string","title":"Label"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"icon_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon Name"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["id","name","label","is_active"],"title":"DeviceTypeResponse"},"DomainVerificationStatus":{"type":"string","enum":["unconfigured","pending","active","failed"],"title":"DomainVerificationStatus","description":"Verification state of an outfitter's custom domain (WLAI-314, live WLAI-321).\n\nCloudflare reports TWO statuses per custom hostname, one for the hostname\nand one for its certificate, and the Vercel origin has a third (domain\nverified on the project). This single value is the combined translation,\nowned by ``custom_domain_service.derive_status`` (mapping ratified by\nNathan 2026-10-01):\n\n  * ``unconfigured``: no hostname submitted yet. The default.\n  * ``pending``: submitted, not yet serving. Includes \"hostname active but\n    certificate still issuing\" and \"Cloudflare ready, Vercel not verified\".\n  * ``active``: Cloudflare hostname AND certificate active, and the Vercel\n    domain verified (or the Vercel step is manual in this environment).\n  * ``failed``: Cloudflare reports ``moved``, ``blocked`` or ``deleted``.\n\n``unconfigured`` and ``failed`` are deliberately distinct. Collapsing them\nwould make \"this outfitter never asked for a domain\" indistinguishable from\n\"this outfitter's domain is broken\", and only the second is an incident."},"DsarAdminUpdateBody":{"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"denial_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Denial Reason"},"response_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Url"}},"type":"object","title":"DsarAdminUpdateBody"},"DsarSubmitBody":{"properties":{"request_type":{"type":"string","title":"Request Type","description":"One of: access, correct, delete, portability, opt_out, limit_sensitive_pi, human_review, appeal"},"email":{"type":"string","maxLength":320,"minLength":3,"title":"Email"},"details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Details"}},"type":"object","required":["request_type","email"],"title":"DsarSubmitBody"},"DsarSubmitResponse":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status"},"request_type":{"type":"string","title":"Request Type"},"verification_required":{"type":"boolean","title":"Verification Required"},"message":{"type":"string","title":"Message"}},"type":"object","required":["id","status","request_type","verification_required","message"],"title":"DsarSubmitResponse"},"DsarVerifyBody":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"DsarVerifyBody"},"DsarView":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"request_type":{"type":"string","title":"Request Type"},"status":{"type":"string","title":"Status"},"submitted_at":{"type":"string","title":"Submitted At"},"verified_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verified At"},"resolved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved At"},"details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Details"},"response_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Url"},"denial_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Denial Reason"}},"type":"object","required":["id","email","request_type","status","submitted_at"],"title":"DsarView"},"EcosystemStatsResponse":{"properties":{"total_tracked_bucks":{"type":"integer","title":"Total Tracked Bucks"},"total_sightings":{"type":"integer","title":"Total Sightings"},"properties_participating":{"type":"integer","title":"Properties Participating"},"avg_sightings_per_buck":{"type":"number","title":"Avg Sightings Per Buck"}},"type":"object","required":["total_tracked_bucks","total_sightings","properties_participating","avg_sightings_per_buck"],"title":"EcosystemStatsResponse","description":"Public ecosystem-level statistics."},"EmailDiagnosticsResponse":{"properties":{"provider":{"type":"string","title":"Provider","description":"Transactional email provider in use."},"provider_configured":{"type":"boolean","title":"Provider Configured","description":"False means the API key is empty and every send is skipped before the provider is called."},"api_key_length":{"type":"integer","title":"Api Key Length","description":"Character length of the configured key, never the key itself. Distinguishes 'unset' (0) from 'set but truncated/malformed'."},"from_address":{"type":"string","title":"From Address","description":"The single transactional sending identity currently configured."},"last_attempt":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Last Attempt","description":"Most recent send attempt of any outcome (sent, skipped, or failed), or null if none recorded."},"last_failure":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Last Failure","description":"Most recent skipped-or-failed send, or null if none recorded."}},"type":"object","required":["provider","provider_configured","api_key_length","from_address"],"title":"EmailDiagnosticsResponse","description":"Outbound-email provider state. Carries NO secret values."},"EmailSignupRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email","description":"Subscriber email; lowercased server-side."},"segment":{"type":"string","enum":["outfitter","hunter","both","unspecified"],"title":"Segment","description":"Self-declared audience: outfitter | hunter | both | unspecified.","default":"unspecified"},"subscribed_to_updates":{"type":"boolean","title":"Subscribed To Updates","description":"Wants product-update emails. Defaults true on the public form.","default":true},"source":{"type":"string","maxLength":255,"title":"Source","description":"Origin of the signup (form name, campaign tag, etc.).","default":"coming-soon-page"}},"type":"object","required":["email"],"title":"EmailSignupRequest","description":"Body for ``POST /api/v1/email-signups``.\n\n``email`` uses Pydantic's ``EmailStr`` (powered by the\n``email-validator`` package added in this PR) so basic RFC\nshape errors return a clean 422 before reaching the service\nlayer. Email is lowercased server-side before insert so the\ncase-sensitive UNIQUE on the table can't accept duplicates\nthat differ only in case (companion migration also adds a\nfunctional ``LOWER(email)`` unique index)."},"EmailSignupResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message","default":"You're locked in.   \n\nYour sign‑up made it through clean, and you're officially on the WildLens early access roster.\n\nWe're building tools for hunters who take the craft seriously — the kind who know the land, respect the animals, and rely on gear that doesn't quit. When WildLens opens the gates, you'll be among the first to see what's coming.\n\nUntil then, keep your glass steady and your cameras rolling."},"signup_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Signup Id"}},"type":"object","title":"EmailSignupResponse","description":"Returned by both the create-new and duplicate-email paths.\n\nThe contract is intentionally idempotent: a duplicate email\nsubmission returns ``success=True`` with ``signup_id=None`` so\nthe public form can never be used to enumerate which addresses\nare already on the list."},"EntitlementGrantRequest":{"properties":{"capability_key":{"type":"string","maxLength":64,"minLength":1,"title":"Capability Key"},"enabled":{"type":"boolean","title":"Enabled","default":true},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config"}},"type":"object","required":["capability_key"],"title":"EntitlementGrantRequest","description":"One RutLine add-on toggle from the creation modal (WLAI-302 catalog).\n\n``capability_key`` is validated against ``capability_catalog`` BEFORE any\nrow is written (the repo's own pre-flight). The FK would catch an unseeded\nkey too, but only as an IntegrityError mid-transaction — a 422 naming the\noffending keys is the usable answer."},"ErrorDetail":{"properties":{"message":{"type":"string","title":"Message"},"field":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field"}},"type":"object","required":["message"],"title":"ErrorDetail"},"EvaluateRequest":{"properties":{"property_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Property Id"}},"type":"object","title":"EvaluateRequest"},"EvaluateResponse":{"properties":{"alerts":{"items":{"$ref":"#/components/schemas/AlertResponse"},"type":"array","title":"Alerts"},"delivery":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Delivery"}},"type":"object","required":["alerts","delivery"],"title":"EvaluateResponse"},"FailedAnalysisListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/FailedAnalysisRow"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/FailedAnalysisMeta"}},"type":"object","required":["data","meta"],"title":"FailedAnalysisListResponse"},"FailedAnalysisMeta":{"properties":{"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"}},"type":"object","required":["total","page","per_page"],"title":"FailedAnalysisMeta"},"FailedAnalysisRow":{"properties":{"photo_id":{"type":"string","title":"Photo Id"},"property_id":{"type":"string","title":"Property Id"},"property_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Name"},"org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Name"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"analysis_status":{"type":"string","title":"Analysis Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"}},"type":"object","required":["photo_id","property_id","analysis_status","created_at"],"title":"FailedAnalysisRow"},"FeatureTogglePatchRequest":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"rollout_percentage":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Rollout Percentage"},"toggle_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Toggle Metadata"}},"type":"object","required":["enabled"],"title":"FeatureTogglePatchRequest"},"FromNameRequest":{"properties":{"from_name":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"From Name"}},"type":"object","title":"FromNameRequest","description":"Body for setting the outfitter's sender display name (WLAI-313).\n\n``from_name=\"\"`` clears it, matching ``BrandColorRequest`` and the\n``logo_url=\"\"`` convention.\n\n``max_length`` here is a cheap first cut only. The authority is\n``org_branding_service.validate_from_name``, which also refuses control\ncharacters and the RFC 5322 specials — neither of which a length bound can\nexpress, and the CR/LF case is header injection rather than a formatting\nnicety. Keep the two in step: this bound must never be TIGHTER than\n``FROM_NAME_MAX_LENGTH``, or the service's clearer message becomes\nunreachable behind a bare 422."},"GPSImportSummary":{"properties":{"updated":{"type":"integer","title":"Updated"},"not_found":{"items":{"type":"string"},"type":"array","title":"Not Found"},"errors":{"items":{"type":"string"},"type":"array","title":"Errors"}},"type":"object","required":["updated","not_found","errors"],"title":"GPSImportSummary"},"GateKind":{"type":"string","enum":["quota","capacity","feature","window"],"title":"GateKind","description":"How an entitlement is enforced and, in a refusal, how it is refused.\n\nquota    — countable, resets on a period boundary. Refused at the action.\ncapacity — structural, persistent. Refused when a new object exceeds the ceiling.\nfeature  — boolean. Refused at route entry, before any computation.\nwindow   — temporal (days). NEVER refuses: it CLAMPS to the entitled horizon,\n           returns the data, and states the clamp (§3, normative)."},"GenerateResponse":{"properties":{"brief_id":{"type":"string","title":"Brief Id"},"hunt_plan_id":{"type":"string","title":"Hunt Plan Id"},"created_at":{"type":"string","title":"Created At"},"summary":{"additionalProperties":true,"type":"object","title":"Summary"},"model":{"additionalProperties":true,"type":"object","title":"Model"}},"type":"object","required":["brief_id","hunt_plan_id","created_at","summary","model"],"title":"GenerateResponse"},"GuideSummary":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","required":["id","name"],"title":"GuideSummary","description":"Embedded guide shape — first name + last name pulled from the\nProfile. ``id`` is the profile UUID."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HankAskRequest":{"properties":{"question":{"type":"string","maxLength":2000,"minLength":1,"title":"Question"},"property_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Id"}},"type":"object","required":["question"],"title":"HankAskRequest","description":"A single question to Hank.\n\n``question`` is user free-text arriving through our own product — it is\ntreated as UNTRUSTED and is fenced before it ever enters model context.\n``property_id`` (optional) scopes a Class-B interpretive read to one\nproperty the caller must be a member of; tenancy is enforced at the query\nlayer by the existing property-access guard, never by prompt text."},"HankAskResponse":{"properties":{"answer":{"type":"string","title":"Answer"},"question_class":{"type":"string","title":"Question Class"},"metered":{"type":"boolean","title":"Metered"},"model":{"type":"string","title":"Model"},"placement":{"anyOf":[{"$ref":"#/components/schemas/HankPlacementRef"},{"type":"null"}]}},"type":"object","required":["answer","question_class","metered","model"],"title":"HankAskResponse"},"HankPlacementRef":{"properties":{"property_id":{"type":"string","title":"Property Id"},"status":{"type":"string","title":"Status"},"mode":{"type":"string","title":"Mode"},"pick_ids":{"items":{"type":"string"},"type":"array","title":"Pick Ids"},"set_boundary_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Set Boundary Path"}},"type":"object","required":["property_id","status","mode","pick_ids"],"title":"HankPlacementRef","description":"WLAI-432 P3: lets the frontend offer \"Show on map\" for a Class P answer.\nThe pick ids are the engine's deterministic ``pick_id`` values, the same ones\n``GET /properties/{id}/camera-placement`` returns for the same inputs."},"HardDeleteRequest":{"properties":{"target_type":{"type":"string","title":"Target Type"},"target_id":{"type":"string","title":"Target Id"},"dry_run":{"type":"boolean","title":"Dry Run","default":true}},"type":"object","required":["target_type","target_id"],"title":"HardDeleteRequest"},"HarvestAgeClass":{"type":"string","enum":["fawn_poult","yearling","young_adult","adult","mature"],"title":"HarvestAgeClass","description":"Hunter / biologist age buckets for harvested animals.\n\nDistinct from `AgeClass` (used on AI analysis output) because the\nbiology bucketing differs: harvest reports lump ``young`` and ``old``\ninto ``adult``/``mature`` to match jawbone-aging conventions."},"HarvestFilters":{"properties":{"date_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date From"},"date_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date To"},"property_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Id"},"species":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species"},"hunter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hunter Id"}},"type":"object","title":"HarvestFilters"},"HarvestRecordCreate":{"properties":{"assignment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignment Id"},"harvest_date":{"type":"string","format":"date","title":"Harvest Date"},"harvest_time":{"anyOf":[{"type":"string","format":"time"},{"type":"null"}],"title":"Harvest Time"},"species":{"type":"string","maxLength":100,"title":"Species"},"sex":{"$ref":"#/components/schemas/HarvestSex"},"age_class":{"anyOf":[{"$ref":"#/components/schemas/HarvestAgeClass"},{"type":"null"}]},"method_of_take":{"anyOf":[{"$ref":"#/components/schemas/MethodOfTake"},{"type":"null"}]},"hunter_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Hunter Name"},"hunter_license":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Hunter License"},"tag_number":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Tag Number"},"antler_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Antler Description"},"check_in_method":{"anyOf":[{"$ref":"#/components/schemas/CheckInMethod"},{"type":"null"}]},"check_in_confirmation":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Check In Confirmation"},"harvest_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Harvest Notes"},"photo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Photo Url"},"shot_distance_yards":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Shot Distance Yards"},"antler_points":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Antler Points"},"antler_score":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string"},{"type":"null"}],"title":"Antler Score"},"weight_lbs":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string"},{"type":"null"}],"title":"Weight Lbs"},"photo_urls":{"items":{"type":"string"},"type":"array","title":"Photo Urls"}},"type":"object","required":["harvest_date","species","sex"],"title":"HarvestRecordCreate"},"HarvestRecordResponse":{"properties":{"id":{"type":"string","title":"Id"},"stand_id":{"type":"string","title":"Stand Id"},"property_id":{"type":"string","title":"Property Id"},"assignment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignment Id"},"harvest_date":{"type":"string","format":"date","title":"Harvest Date"},"harvest_time":{"anyOf":[{"type":"string","format":"time"},{"type":"null"}],"title":"Harvest Time"},"species":{"type":"string","title":"Species"},"sex":{"$ref":"#/components/schemas/HarvestSex"},"age_class":{"anyOf":[{"$ref":"#/components/schemas/HarvestAgeClass"},{"type":"null"}]},"method_of_take":{"anyOf":[{"$ref":"#/components/schemas/MethodOfTake"},{"type":"null"}]},"hunter_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hunter Name"},"hunter_license":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hunter License"},"tag_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag Number"},"antler_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Antler Description"},"check_in_method":{"anyOf":[{"$ref":"#/components/schemas/CheckInMethod"},{"type":"null"}]},"check_in_confirmation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Check In Confirmation"},"harvest_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Harvest Notes"},"photo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Photo Url"},"shot_distance_yards":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Shot Distance Yards"},"antler_points":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Antler Points"},"antler_score":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Antler Score"},"weight_lbs":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weight Lbs"},"photo_urls":{"items":{"type":"string"},"type":"array","title":"Photo Urls"},"created_by_id":{"type":"string","title":"Created By Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","stand_id","property_id","harvest_date","species","sex","created_by_id","created_at","updated_at"],"title":"HarvestRecordResponse"},"HarvestReport":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"filters":{"$ref":"#/components/schemas/HarvestFilters"},"rows":{"items":{"$ref":"#/components/schemas/HarvestRow"},"type":"array","title":"Rows"},"total_harvests":{"type":"integer","title":"Total Harvests"},"species_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Species Counts"}},"type":"object","required":["organization_id","generated_at","filters","rows","total_harvests"],"title":"HarvestReport"},"HarvestRow":{"properties":{"harvest_record_id":{"type":"string","title":"Harvest Record Id"},"property_id":{"type":"string","title":"Property Id"},"property_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Name"},"stand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stand Id"},"stand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stand Name"},"hunter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hunter Id"},"hunter_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hunter Name"},"species":{"type":"string","title":"Species"},"sex":{"type":"string","title":"Sex"},"age_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Age Class"},"method_of_take":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method Of Take"},"harvest_date":{"type":"string","format":"date","title":"Harvest Date"},"tag_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag Number"},"antler_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Antler Description"}},"type":"object","required":["harvest_record_id","property_id","species","sex","harvest_date"],"title":"HarvestRow"},"HarvestSex":{"type":"string","enum":["buck","doe","tom","jake","boar","sow","unknown"],"title":"HarvestSex","description":"Species-aware sex/maturity descriptor for a harvested animal.\n\nMaps to common outfitter parlance — distinct from `Sex` which\nbacks AI sighting analysis."},"HazardMutationResponse":{"properties":{"hazard":{"$ref":"#/components/schemas/StandHazardResponse"},"status_report":{"$ref":"#/components/schemas/HazardStatusReport"}},"type":"object","required":["hazard","status_report"],"title":"HazardMutationResponse","description":"Combined response: the affected hazard + the recomputed\nstand-status report. UI uses ``status_report.forced_to_maintenance``\nfor the post-add banner and ``status_report.can_revert`` for the\npost-resolve \"safe to mark available?\" prompt."},"HazardResolve":{"properties":{"resolution_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution Notes"}},"type":"object","title":"HazardResolve","description":"Body for resolving a hazard. Resolution notes optional — the\nnote itself is captured separately as a StandNote when needed."},"HazardSeverity":{"type":"string","enum":["low","medium","high"],"title":"HazardSeverity","description":"Severity tier for `stand_hazards`. No ``critical`` rung — the\noutfitter ops convention treats anything beyond ``high`` as a\nclosure event, not a hazard report."},"HazardStatusReport":{"properties":{"stand_id":{"type":"string","title":"Stand Id"},"status":{"$ref":"#/components/schemas/StandStatus"},"forced_to_maintenance":{"type":"boolean","title":"Forced To Maintenance","default":false},"can_revert":{"type":"boolean","title":"Can Revert","default":false},"unresolved_high_count":{"type":"integer","title":"Unresolved High Count","default":0},"warning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Warning"}},"type":"object","required":["stand_id","status"],"title":"HazardStatusReport","description":"Returned by ``StandService.enforce_hazard_status``.\n\nCommunicates whether the call forced the stand into ``maintenance``\nAND whether the manager could (manually) revert it because all\nhigh-severity hazards are resolved. The service NEVER reverts\nautomatically — the UI is expected to prompt for confirmation.\n\nPhase 7 / STAND-002: when an unresolved-high hazard lands on an\n``occupied`` stand, ``warning`` carries the user-facing message and\nstatus is NOT forced to maintenance (the current hunt finishes first)."},"HazardType":{"type":"string","enum":["wasp_nest","weak_platform","flooding","accessibility","wildlife","other"],"title":"HazardType","description":"What kind of hazard was reported at the stand."},"HazardUpdate":{"properties":{"severity":{"anyOf":[{"$ref":"#/components/schemas/HazardSeverity"},{"type":"null"}]},"description":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Description"}},"type":"object","title":"HazardUpdate","description":"Partial-update body for PATCH .../hazards/{hazard_id}\n(Asana 1215159576788809, M2). ``severity`` and ``description`` are\nthe only user-editable fields. Both are optional so callers can\nupdate either independently. ``is_resolved`` state changes only\nvia the /resolve sub-route — flipping it here would bypass the\nStandNote auto-creation flow."},"HealthMetricsResponse":{"properties":{"uptime_1h_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Uptime 1H Pct"},"uptime_7d_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Uptime 7D Pct"},"uptime_30d_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Uptime 30D Pct"},"photo_processing_median_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Photo Processing Median S"},"photo_processing_p95_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Photo Processing P95 S"},"ai_accuracy_7d_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ai Accuracy 7D Pct"},"api_response_p95_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Api Response P95 Ms"},"dlq_depth":{"type":"integer","title":"Dlq Depth","default":0},"dlq_oldest_age_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Dlq Oldest Age Hours"},"dsar_oldest_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dsar Oldest Days"},"online_users":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Online Users","description":"Users with an authenticated request in the last ``online_window_seconds``. NULL — not 0 — when Redis is unreachable, so the card can render 'no data' rather than a confident zero that happens to be false."},"online_window_seconds":{"type":"integer","title":"Online Window Seconds","default":300},"pipeline_status":{"type":"string","title":"Pipeline Status","description":"'active' when uploads or analyses are in flight, else 'idle'.","default":"idle"},"pipeline_uploads_in_flight":{"type":"integer","title":"Pipeline Uploads In Flight","default":0},"pipeline_analyses_in_flight":{"type":"integer","title":"Pipeline Analyses In Flight","default":0},"pipeline_stale_uploads":{"type":"integer","title":"Pipeline Stale Uploads","description":"Rows stuck in a non-terminal state outside the activity window. Excluded from ``pipeline_status`` on purpose — see ``app.services.pipeline_activity_service``.","default":0},"pipeline_stale_analyses":{"type":"integer","title":"Pipeline Stale Analyses","default":0},"pipeline_activity_window_minutes":{"type":"integer","title":"Pipeline Activity Window Minutes","default":15},"active_orgs":{"type":"integer","title":"Active Orgs","default":0},"new_orgs_this_week":{"type":"integer","title":"New Orgs This Week","default":0},"mrr_cents":{"type":"integer","title":"Mrr Cents","default":0},"active_subscriptions":{"type":"integer","title":"Active Subscriptions","default":0},"open_support_tickets":{"type":"integer","title":"Open Support Tickets","default":0},"pending_dsar":{"type":"integer","title":"Pending Dsar","default":0},"failed_analyses":{"type":"integer","title":"Failed Analyses","default":0},"active_feature_flags":{"type":"integer","title":"Active Feature Flags","default":0},"sources":{"items":{"type":"string"},"type":"array","title":"Sources","description":"Which upstream sources contributed to this payload. Possible values: 'cloudwatch', 'sentry', 'internal'."},"as_of":{"type":"string","format":"date-time","title":"As Of"}},"type":"object","required":["as_of"],"title":"HealthMetricsResponse","description":"Rich health-and-business metrics aggregated from CloudWatch,\nSentry, and the internal DB.\n\nValues may be ``None`` when the underlying source is unavailable\n— the admin dashboard renders a \"no data\" state in that case\nrather than dropping the entire payload."},"HeatmapBBox":{"properties":{"min_lat":{"type":"number","title":"Min Lat"},"max_lat":{"type":"number","title":"Max Lat"},"min_lng":{"type":"number","title":"Min Lng"},"max_lng":{"type":"number","title":"Max Lng"}},"type":"object","required":["min_lat","max_lat","min_lng","max_lng"],"title":"HeatmapBBox"},"HeatmapBounds":{"properties":{"ne":{"$ref":"#/components/schemas/HeatmapBoundsCorner"},"sw":{"$ref":"#/components/schemas/HeatmapBoundsCorner"}},"type":"object","required":["ne","sw"],"title":"HeatmapBounds"},"HeatmapBoundsCorner":{"properties":{"lat":{"type":"number","title":"Lat"},"lng":{"type":"number","title":"Lng"}},"type":"object","required":["lat","lng"],"title":"HeatmapBoundsCorner"},"HeatmapCluster":{"properties":{"latitude":{"type":"number","title":"Latitude"},"longitude":{"type":"number","title":"Longitude"},"count":{"type":"integer","title":"Count"},"density":{"type":"number","title":"Density"},"top_species":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Top Species"},"band":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Band"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"contributing_cameras":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contributing Cameras"}},"type":"object","required":["latitude","longitude","count","density"],"title":"HeatmapCluster"},"HeatmapFlatPoint":{"properties":{"lat":{"type":"number","title":"Lat"},"lng":{"type":"number","title":"Lng"},"weight":{"type":"number","minimum":0.0,"title":"Weight"}},"type":"object","required":["lat","lng","weight"],"title":"HeatmapFlatPoint","description":"Compact shape consumed by ``google.maps.visualization.HeatmapLayer``."},"HeatmapFlatResponse":{"properties":{"points":{"items":{"$ref":"#/components/schemas/HeatmapFlatPoint"},"type":"array","title":"Points"},"bounds":{"anyOf":[{"$ref":"#/components/schemas/HeatmapBounds"},{"type":"null"}]},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"total_points":{"type":"integer","title":"Total Points"},"capped":{"type":"boolean","title":"Capped"}},"type":"object","required":["points","timestamp","total_points","capped"],"title":"HeatmapFlatResponse"},"HeatmapListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/app__schemas__asset__HeatmapResponse"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"HeatmapListResponse"},"HeatmapMeta":{"properties":{"mode":{"type":"string","title":"Mode"},"located_camera_count":{"type":"integer","title":"Located Camera Count"},"total_camera_count":{"type":"integer","title":"Total Camera Count"},"grid_precision_yards":{"type":"number","title":"Grid Precision Yards"},"kernel_radius_yards":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Kernel Radius Yards"},"window":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"type":"object"},{"type":"null"}],"title":"Window"},"cell_cap":{"type":"integer","title":"Cell Cap"},"cell_count":{"type":"integer","title":"Cell Count"},"no_located_cameras":{"type":"boolean","title":"No Located Cameras"},"excluded_cameraless_photos":{"type":"integer","title":"Excluded Cameraless Photos"},"degraded":{"type":"boolean","title":"Degraded"},"band_legend":{"additionalProperties":{"type":"string"},"type":"object","title":"Band Legend"}},"type":"object","required":["mode","located_camera_count","total_camera_count","grid_precision_yards","cell_cap","cell_count","no_located_cameras","excluded_cameraless_photos","degraded","band_legend"],"title":"HeatmapMeta","description":"Honest empty/partial-state context for the FE (DEFECT-101 §7).\n\nLets the FE render no-coverage / degraded / assign-camera states without\nguessing from the cells alone."},"HeatmapPoint":{"properties":{"latitude":{"type":"number","title":"Latitude"},"longitude":{"type":"number","title":"Longitude"},"weight":{"type":"number","title":"Weight"}},"type":"object","required":["latitude","longitude","weight"],"title":"HeatmapPoint"},"HitListEntryResponse":{"properties":{"tracked_buck_id":{"type":"string","title":"Tracked Buck Id"},"species":{"type":"string","title":"Species"},"classification":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Classification"},"photo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Photo Url"},"last_seen_at":{"type":"string","format":"date-time","title":"Last Seen At"},"nearest_stand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nearest Stand Name"},"property_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Name"}},"type":"object","required":["tracked_buck_id","species","last_seen_at"],"title":"HitListEntryResponse","description":"One tracked buck, collapsed to its most recent sighting in the window."},"HitListFilters":{"properties":{"days":{"type":"integer","title":"Days"},"property_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Id"}},"type":"object","required":["days"],"title":"HitListFilters","description":"Echo of the resolved query, so the caller can render filter chips."},"HitListReport":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"filters":{"$ref":"#/components/schemas/HitListFilters"},"entries":{"items":{"$ref":"#/components/schemas/HitListEntryResponse"},"type":"array","title":"Entries"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["organization_id","generated_at","filters","entries","total"],"title":"HitListReport"},"HourlyActivity":{"properties":{"hour":{"type":"integer","title":"Hour"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["hour","count"],"title":"HourlyActivity"},"HuntAssignmentCreate":{"properties":{"hunt_date":{"type":"string","format":"date","title":"Hunt Date"},"guide_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guide Id"},"hunter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hunter Id"},"hunter_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Hunter Name"},"hunter_license":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Hunter License"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["hunt_date"],"title":"HuntAssignmentCreate"},"HuntAssignmentResponse":{"properties":{"id":{"type":"string","title":"Id"},"stand_id":{"type":"string","title":"Stand Id"},"property_id":{"type":"string","title":"Property Id"},"hunt_date":{"type":"string","format":"date","title":"Hunt Date"},"guide_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guide Id"},"hunter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hunter Id"},"hunter_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hunter Name"},"hunter_license":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hunter License"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"outcome":{"anyOf":[{"$ref":"#/components/schemas/AssignmentOutcome"},{"type":"null"}]},"cleared_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cleared At"},"cleared_by_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cleared By Id"},"created_by_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","stand_id","property_id","hunt_date","created_at","updated_at"],"title":"HuntAssignmentResponse"},"HuntCreate":{"properties":{"property_id":{"type":"string","title":"Property Id"},"hunter_id":{"type":"string","title":"Hunter Id"},"lead_guide_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Guide Id"},"title":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Title"},"start_date":{"type":"string","format":"date","title":"Start Date"},"end_date":{"type":"string","format":"date","title":"End Date"},"target_species":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Target Species"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"sessions":{"items":{"$ref":"#/components/schemas/HuntSessionSeed"},"type":"array","title":"Sessions"}},"type":"object","required":["property_id","hunter_id","start_date","end_date"],"title":"HuntCreate","description":"Initial ``status`` is always ``draft`` — server-set."},"HuntHistoryResponse":{"properties":{"id":{"type":"string","title":"Id"},"client_id":{"type":"string","title":"Client Id"},"property_id":{"type":"string","title":"Property Id"},"stand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stand Id"},"hunt_plan_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hunt Plan Id"},"species_taxon_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species Taxon Id"},"hunt_date":{"type":"string","format":"date","title":"Hunt Date"},"outcome":{"type":"string","title":"Outcome"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","client_id","property_id","stand_id","hunt_plan_id","species_taxon_id","hunt_date","outcome","notes","created_at"],"title":"HuntHistoryResponse"},"HuntPlanResponse":{"properties":{"id":{"type":"string","title":"Id"},"outfitter_id":{"type":"string","title":"Outfitter Id"},"client_id":{"type":"string","title":"Client Id"},"property_id":{"type":"string","title":"Property Id"},"stand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stand Id"},"species_taxon_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species Taxon Id"},"hunt_date":{"type":"string","format":"date","title":"Hunt Date"},"window":{"additionalProperties":true,"type":"object","title":"Window"},"rationale":{"additionalProperties":true,"type":"object","title":"Rationale"},"client_rationale":{"additionalProperties":true,"type":"object","title":"Client Rationale"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","outfitter_id","client_id","property_id","stand_id","species_taxon_id","hunt_date","window","rationale","client_rationale","notes","created_at"],"title":"HuntPlanResponse"},"HuntResponse":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"property_id":{"type":"string","title":"Property Id"},"hunter_id":{"type":"string","title":"Hunter Id"},"lead_guide_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Guide Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"start_date":{"type":"string","format":"date","title":"Start Date"},"end_date":{"type":"string","format":"date","title":"End Date"},"status":{"$ref":"#/components/schemas/HuntStatus"},"target_species":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Species"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_by_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"hunter_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hunter Name"},"property_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Name"},"lead_guide_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Guide Name"},"hunter":{"anyOf":[{"$ref":"#/components/schemas/HunterSummary"},{"type":"null"}]},"lead_guide":{"anyOf":[{"$ref":"#/components/schemas/GuideSummary"},{"type":"null"}]},"sessions":{"items":{"$ref":"#/components/schemas/HuntSessionSummary"},"type":"array","title":"Sessions"}},"type":"object","required":["id","organization_id","property_id","hunter_id","start_date","end_date","status","created_at","updated_at"],"title":"HuntResponse"},"HuntSessionResponse":{"properties":{"id":{"type":"string","title":"Id"},"hunt_id":{"type":"string","title":"Hunt Id"},"organization_id":{"type":"string","title":"Organization Id"},"property_id":{"type":"string","title":"Property Id"},"stand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stand Id"},"guide_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guide Id"},"session_date":{"type":"string","format":"date","title":"Session Date"},"time_of_day":{"$ref":"#/components/schemas/SessionTimeOfDay"},"status":{"$ref":"#/components/schemas/SessionStatus"},"outcome":{"anyOf":[{"$ref":"#/components/schemas/SessionOutcome"},{"type":"null"}]},"harvest_record_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Harvest Record Id"},"briefing_generated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Briefing Generated At"},"briefing_version":{"type":"integer","title":"Briefing Version","default":0},"qr_token":{"type":"string","title":"Qr Token"},"qr_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Qr Expires At"},"guide_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guide Notes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_briefing_fresh":{"type":"boolean","title":"Is Briefing Fresh","default":false},"hunter_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hunter Name"},"property_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Name"},"stand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stand Name"},"guide_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guide Name"}},"type":"object","required":["id","hunt_id","organization_id","property_id","session_date","time_of_day","status","qr_token","created_at","updated_at"],"title":"HuntSessionResponse"},"HuntSessionSeed":{"properties":{"session_date":{"type":"string","format":"date","title":"Session Date"},"time_of_day":{"$ref":"#/components/schemas/SessionTimeOfDay"},"stand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stand Id"},"guide_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guide Id"},"include":{"type":"boolean","title":"Include","default":true}},"type":"object","required":["session_date","time_of_day"],"title":"HuntSessionSeed","description":"One row in the bulk session seed list passed to ``HuntCreate``.\n\n``include=False`` lets the UI's calendar grid send every slot it\nknows about — the service drops the unticked ones rather than\nforcing the client to filter."},"HuntSessionSummary":{"properties":{"id":{"type":"string","title":"Id"},"session_date":{"type":"string","format":"date","title":"Session Date"},"time_of_day":{"$ref":"#/components/schemas/SessionTimeOfDay"},"status":{"type":"string","title":"Status"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome"},"stand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stand Id"},"guide_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guide Id"},"stand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stand Name"},"guide_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guide Name"},"briefing_generated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Briefing Generated At"}},"type":"object","required":["id","session_date","time_of_day","status"],"title":"HuntSessionSummary","description":"Embedded session shape inside a HuntResponse. Full\nHuntSessionResponse lives in app/schemas/hunt_session.py."},"HuntSessionUpdate":{"properties":{"stand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stand Id"},"guide_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guide Id"},"status":{"anyOf":[{"$ref":"#/components/schemas/SessionStatus"},{"type":"null"}]},"outcome":{"anyOf":[{"$ref":"#/components/schemas/SessionOutcome"},{"type":"null"}]},"guide_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guide Notes"}},"type":"object","title":"HuntSessionUpdate","description":"PATCH — every field optional. Spec §4.1 limits this to\nstand/guide/status/outcome/guide_notes. ``session_date`` and\n``time_of_day`` are part of the UNIQUE key and intentionally not\nupdatable — moving a session means cancel + recreate."},"HuntSessionUpdateResponse":{"properties":{"session":{"$ref":"#/components/schemas/HuntSessionResponse"},"prompt_harvest_record":{"type":"boolean","title":"Prompt Harvest Record","default":false}},"type":"object","required":["session"],"title":"HuntSessionUpdateResponse","description":"Envelope-ish response to PATCH /sessions/{id}.\n\n``prompt_harvest_record`` is ``True`` when the update set\n``outcome=harvest`` without an existing ``harvest_record_id``;\nthe UI should pop the harvest-log form on the next tick."},"HuntStatus":{"type":"string","enum":["draft","confirmed","in_progress","completed","cancelled"],"title":"HuntStatus","description":"Lifecycle of a `hunts` row (the trip container that owns one or\nmore `hunt_sessions`).\n\n``draft`` is the initial state — outfitter is staging the trip.\n``confirmed`` is the booked / locked-in state. ``in_progress``\nflips when the first session opens. ``completed`` and\n``cancelled`` are terminal."},"HuntUpdate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Title"},"lead_guide_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Guide Id"},"status":{"anyOf":[{"$ref":"#/components/schemas/HuntStatus"},{"type":"null"}]},"target_species":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Target Species"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"HuntUpdate","description":"PATCH — title / guide / status / notes. ``start_date`` /\n``end_date`` / ``hunter_id`` / ``property_id`` are intentionally\nNOT updatable after creation; if any of those need to change, the\noperation is a cancel + recreate."},"HunterRosterFilters":{"properties":{"include_inactive":{"type":"boolean","title":"Include Inactive","default":false}},"type":"object","title":"HunterRosterFilters"},"HunterRosterReport":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"filters":{"$ref":"#/components/schemas/HunterRosterFilters"},"rows":{"items":{"$ref":"#/components/schemas/HunterRosterRow"},"type":"array","title":"Rows"},"total_hunters":{"type":"integer","title":"Total Hunters"},"total_hunts":{"type":"integer","title":"Total Hunts"},"total_harvests":{"type":"integer","title":"Total Harvests"}},"type":"object","required":["organization_id","generated_at","filters","rows","total_hunters","total_hunts","total_harvests"],"title":"HunterRosterReport"},"HunterRosterRow":{"properties":{"hunter_id":{"type":"string","title":"Hunter Id"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"home_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Home State"},"weapon_preference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weapon Preference"},"target_species":{"items":{"type":"string"},"type":"array","title":"Target Species"},"is_active":{"type":"boolean","title":"Is Active","default":true},"hunt_count":{"type":"integer","title":"Hunt Count","default":0},"last_hunt_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Hunt Date"},"harvest_count":{"type":"integer","title":"Harvest Count","default":0},"last_harvest_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Harvest Date"}},"type":"object","required":["hunter_id","first_name","last_name"],"title":"HunterRosterRow"},"HunterSummary":{"properties":{"id":{"type":"string","title":"Id"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"}},"type":"object","required":["id","first_name","last_name"],"title":"HunterSummary","description":"Embedded hunter shape on a HuntResponse — full record is reachable\nvia /api/v1/hunters/{id}; this is just enough to render the row."},"ImpersonateEndResponse":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"ImpersonateEndResponse"},"ImpersonateResponse":{"properties":{"token":{"type":"string","title":"Token"},"expires_in_seconds":{"type":"integer","title":"Expires In Seconds"},"target_user":{"$ref":"#/components/schemas/ImpersonateTargetUser"}},"type":"object","required":["token","expires_in_seconds","target_user"],"title":"ImpersonateResponse"},"ImpersonateTargetUser":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"subscription_tier":{"type":"string","title":"Subscription Tier"}},"type":"object","required":["id","email","full_name","subscription_tier"],"title":"ImpersonateTargetUser"},"IndividualCameraCountEntry":{"properties":{"property_id":{"type":"string","title":"Property Id"},"property_name":{"type":"string","title":"Property Name"},"cameras_used":{"type":"integer","title":"Cameras Used"},"cameras_cap":{"type":"integer","title":"Cameras Cap"}},"type":"object","required":["property_id","property_name","cameras_used","cameras_cap"],"title":"IndividualCameraCountEntry"},"IndividualResult":{"properties":{"species":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species"},"sex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sex"},"age_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Age Class"},"antler_points":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Antler Points"},"antler_score_estimate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Antler Score Estimate"},"body_condition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Condition"},"orientation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Orientation"},"distinguishing_features":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Distinguishing Features"}},"type":"object","title":"IndividualResult"},"IndividualUsageResponse":{"properties":{"properties_used":{"type":"integer","title":"Properties Used"},"properties_cap":{"type":"integer","title":"Properties Cap"},"cameras_used_per_property":{"items":{"$ref":"#/components/schemas/IndividualCameraCountEntry"},"type":"array","title":"Cameras Used Per Property"},"sessions_used_this_month":{"type":"integer","title":"Sessions Used This Month"},"sessions_cap":{"type":"integer","title":"Sessions Cap"},"period_resets_at":{"type":"string","format":"date-time","title":"Period Resets At"},"shared_access_used":{"type":"integer","title":"Shared Access Used"},"shared_access_cap":{"type":"integer","title":"Shared Access Cap"},"photo_retention_days":{"type":"integer","title":"Photo Retention Days","description":"Rolling retention window. -1 = retained indefinitely."}},"type":"object","required":["properties_used","properties_cap","cameras_used_per_property","sessions_used_this_month","sessions_cap","period_resets_at","shared_access_used","shared_access_cap","photo_retention_days"],"title":"IndividualUsageResponse","description":"Shape consumed by the Account > Usage tab.\n\nAll counts are computed on read — no stored \"usage\" counters\nhere. ``period_resets_at`` is the first instant of the next\ncalendar month in UTC; the session counter implicitly resets\nwhen ``UploadBatch.created_at`` rolls past that boundary."},"IngestionRequest":{"properties":{"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source","description":"Specific source: gbif, inaturalist, usfws, nps. Omit for full run."},"fetch_images":{"type":"boolean","title":"Fetch Images","default":true},"images_per_species":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Images Per Species","default":10},"taxonomic_classes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Taxonomic Classes"}},"type":"object","title":"IngestionRequest","description":"Trigger an ingestion run."},"IngestionStatusResponse":{"properties":{"id":{"type":"string","title":"Id"},"source":{"type":"string","title":"Source"},"status":{"type":"string","title":"Status"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"records_fetched":{"type":"integer","title":"Records Fetched","default":0},"records_created":{"type":"integer","title":"Records Created","default":0},"records_updated":{"type":"integer","title":"Records Updated","default":0},"records_skipped":{"type":"integer","title":"Records Skipped","default":0},"errors":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Errors"}},"type":"object","required":["id","source","status","started_at"],"title":"IngestionStatusResponse","description":"Status of an ingestion run."},"InitZipUploadPartUrl":{"properties":{"part_number":{"type":"integer","title":"Part Number"},"url":{"type":"string","title":"Url"}},"type":"object","required":["part_number","url"],"title":"InitZipUploadPartUrl"},"InitZipUploadRequest":{"properties":{"property_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Id","description":"Optional. When provided, all photos extracted from the archive are associated with this property. If omitted, per-photo routing falls back to EXIF-detected camera mapping."},"filename":{"type":"string","maxLength":500,"title":"Filename"},"content_type":{"type":"string","maxLength":100,"title":"Content Type","default":"application/zip"},"photo_count":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":1.0},{"type":"null"}],"title":"Photo Count","description":"v2: declared number of files in the batch. Drives quota + tier-cap checks."},"estimated_total_bytes":{"anyOf":[{"type":"integer","maximum":10737418240.0,"minimum":1.0},{"type":"null"}],"title":"Estimated Total Bytes","description":"v2: client size estimate (files + ZIP overhead). Quota input only."},"total_size_bytes":{"anyOf":[{"type":"integer","maximum":10737418240.0,"minimum":1.0},{"type":"null"}],"title":"Total Size Bytes"},"part_count":{"anyOf":[{"type":"integer","maximum":10000.0,"minimum":1.0},{"type":"null"}],"title":"Part Count"}},"type":"object","required":["filename"],"title":"InitZipUploadRequest","description":"ZIP ingest init — v2 (PR-U1) with a backward-compatible legacy path.\n\nv2 (streaming client): supply ``photo_count`` + ``estimated_total_bytes``.\n``part_urls`` are NOT presigned at init; the client pages them from\n``POST .../zip/parts`` as the streaming writer emits parts.\n\nLegacy (deprecated): supply ``total_size_bytes`` + ``part_count`` (both).\nBehavior is preserved verbatim, including the one-shot ``part_urls`` in the\nresponse, so deploy order cannot break dev during the FE transition.\n\nExactly one contract must be satisfied; the service returns 422 otherwise.\nThe two new fields are Pydantic-optional so a legacy client (which sends\nneither) is not rejected at the schema layer."},"InitZipUploadResponse":{"properties":{"batch_id":{"type":"string","title":"Batch Id"},"upload_id":{"type":"string","title":"Upload Id"},"key":{"type":"string","title":"Key"},"part_urls":{"anyOf":[{"items":{"$ref":"#/components/schemas/InitZipUploadPartUrl"},"type":"array"},{"type":"null"}],"title":"Part Urls"}},"type":"object","required":["batch_id","upload_id","key"],"title":"InitZipUploadResponse"},"InviteClientRequest":{"properties":{"profile_id":{"type":"string","title":"Profile Id"},"role":{"type":"string","pattern":"^(hunter|guide|landowner)$","title":"Role","default":"hunter"}},"type":"object","required":["profile_id"],"title":"InviteClientRequest"},"InviteListItem":{"properties":{"invite_id":{"type":"string","title":"Invite Id"},"email":{"type":"string","title":"Email"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["invite_id","email","status","created_at","expires_at"],"title":"InviteListItem"},"InviteLookupResponse":{"properties":{"valid":{"type":"boolean","title":"Valid"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"role":{"anyOf":[{"$ref":"#/components/schemas/OrganizationRole"},{"type":"null"}]},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"property_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Id"},"property_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Name"},"inviter_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inviter Name"},"account_exists":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Account Exists"}},"type":"object","required":["valid"],"title":"InviteLookupResponse","description":"Public landing-page lookup response.\n\nAlways 200 — ``valid=False`` covers unknown / expired / claimed\nso the UI can render copy without parsing HTTP error bodies."},"InvoiceRow":{"properties":{"invoice_id":{"type":"string","title":"Invoice Id"},"amount_usd":{"type":"number","title":"Amount Usd"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"invoice_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Invoice Date"},"period_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Period Start"},"period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Period End"},"hosted_invoice_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hosted Invoice Url"}},"type":"object","required":["invoice_id","amount_usd"],"title":"InvoiceRow"},"LocationSummary":{"properties":{"cameras":{"items":{"$ref":"#/components/schemas/CameraLocationSpecies"},"type":"array","title":"Cameras"},"cameras_missing_gps":{"items":{"$ref":"#/components/schemas/CameraMissingGPS"},"type":"array","title":"Cameras Missing Gps"}},"type":"object","required":["cameras","cameras_missing_gps"],"title":"LocationSummary"},"LocationType":{"type":"string","enum":["base_camp","cabin","stand","food_plot","feeder"],"title":"LocationType","description":"FirstLight CC-2: category of a Stand/Location on the property. Distinct\nfrom :class:`StandType` (physical blind kind) — this classifies the location\nitself. Stored as a CHECK-constrained string (may grow), not a PG enum."},"MapAssetListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/MapAssetResponse"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"MapAssetListResponse"},"MapAssetResponse":{"properties":{"id":{"type":"string","title":"Id"},"asset_type":{"type":"string","title":"Asset Type"},"name":{"type":"string","title":"Name"},"latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Longitude"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","asset_type","name"],"title":"MapAssetResponse","description":"Polymorphic asset card. ``id`` is namespaced so the frontend\ncan pick the right edit endpoint:\n\n* ``\"camera:<uuid>\"`` → existing ``/cameras/{id}`` endpoints\n* ``\"stand:<uuid>\"``  → existing ``/stands/{id}`` endpoints\n* ``\"asset:<uuid>\"``  → ``/properties/{pid}/assets/{id}`` (new)"},"MapFeatureBulkCreate":{"properties":{"features":{"items":{"$ref":"#/components/schemas/MapFeatureCreate"},"type":"array","minItems":1,"title":"Features"}},"type":"object","required":["features"],"title":"MapFeatureBulkCreate"},"MapFeatureBulkError":{"properties":{"index":{"type":"integer","title":"Index"},"detail":{"type":"string","title":"Detail"}},"type":"object","required":["index","detail"],"title":"MapFeatureBulkError"},"MapFeatureBulkResponse":{"properties":{"created":{"items":{"$ref":"#/components/schemas/MapFeatureResponse"},"type":"array","title":"Created"},"errors":{"items":{"$ref":"#/components/schemas/MapFeatureBulkError"},"type":"array","title":"Errors"}},"type":"object","required":["created","errors"],"title":"MapFeatureBulkResponse"},"MapFeatureCreate":{"properties":{"feature_type":{"$ref":"#/components/schemas/MapFeatureType"},"geometry":{"additionalProperties":true,"type":"object","title":"Geometry"},"label":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Label"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"color":{"anyOf":[{"type":"string","maxLength":9},{"type":"null"}],"title":"Color"}},"type":"object","required":["feature_type","geometry"],"title":"MapFeatureCreate"},"MapFeatureResponse":{"properties":{"id":{"type":"string","title":"Id"},"property_id":{"type":"string","title":"Property Id"},"feature_type":{"$ref":"#/components/schemas/MapFeatureType"},"geometry":{"additionalProperties":true,"type":"object","title":"Geometry"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"created_by":{"type":"string","title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","property_id","feature_type","geometry","created_by","created_at","updated_at"],"title":"MapFeatureResponse"},"MapFeatureType":{"type":"string","enum":["zone","food_plot","bedding","water","road","corridor","marker","other"],"title":"MapFeatureType","description":"DEFECT-104: type tag for a freeform property map feature.\n\nPermissive by design — the FE tool decides which geometry each type\nemits (§4 of the spec); the backend records the typical mapping but does\nnot hard-reject by geometry/type pairing. ``other`` is the catch-all so\nnew tools never need a migration to start persisting."},"MapFeatureUpdate":{"properties":{"feature_type":{"anyOf":[{"$ref":"#/components/schemas/MapFeatureType"},{"type":"null"}]},"geometry":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Geometry"},"label":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Label"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"color":{"anyOf":[{"type":"string","maxLength":9},{"type":"null"}],"title":"Color"}},"type":"object","title":"MapFeatureUpdate","description":"Partial update — every field optional; provided fields are validated."},"MapsKeyResponse":{"properties":{"api_key":{"type":"string","title":"Api Key"},"note":{"type":"string","title":"Note"}},"type":"object","required":["api_key","note"],"title":"MapsKeyResponse"},"MarkAllReadResponse":{"properties":{"marked_read":{"type":"integer","title":"Marked Read"}},"type":"object","required":["marked_read"],"title":"MarkAllReadResponse"},"MeResponse":{"properties":{"id":{"type":"string","title":"Id"},"is_admin":{"type":"boolean","title":"Is Admin"},"role":{"type":"string","title":"Role"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"membership_class":{"anyOf":[{"$ref":"#/components/schemas/MembershipClass"},{"type":"null"}]},"primary_persona":{"$ref":"#/components/schemas/PrimaryPersona","default":"individual"},"must_change_password":{"type":"boolean","title":"Must Change Password","default":false},"is_founder":{"type":"boolean","title":"Is Founder","default":false},"is_system_admin":{"type":"boolean","title":"Is System Admin","default":false}},"type":"object","required":["id","is_admin","role","full_name"],"title":"MeResponse","description":"Slim post-login profile shape consumed by the Lovable frontend\nto drive portal routing plus the temp-password gate."},"MemberInvite":{"properties":{"email":{"type":"string","title":"Email"},"role":{"$ref":"#/components/schemas/PropertyRole","default":"viewer"}},"type":"object","required":["email"],"title":"MemberInvite"},"MemberInviteResponse":{"properties":{"profile_id":{"type":"string","title":"Profile Id"},"email":{"type":"string","title":"Email"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"role":{"$ref":"#/components/schemas/PropertyRole"},"joined_at":{"type":"string","format":"date-time","title":"Joined At"},"notification_sent":{"type":"boolean","title":"Notification Sent","default":false},"notification_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notification Status"},"notification_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notification Error"}},"type":"object","required":["profile_id","email","full_name","role","joined_at"],"title":"MemberInviteResponse","description":"The invite result: the GRANT, plus the notification outcome beside it.\n\nWLAI-268. DEFECT-105 / R5 was right that a silently-undelivered invitation\nis a lie, but it fixed it by raising 502 — which makes the whole call look\nlike it failed when the membership row was in fact created and committed.\nIn Dev (no mailer) that reads as \"invites are broken\"; in prod any\ntransient Resend hiccup produces the same false failure, and a client that\nretries on 5xx re-invites someone who is already a member.\n\nSo the two outcomes get two channels: the HTTP status reports the GRANT\n(201, because the grant succeeded), and these fields report the\nNOTIFICATION. Nothing is swallowed — the failure is in the body and logged\nat ERROR — it just no longer masquerades as the whole operation failing.\n\nReading the fields:\n\n* ``notification_sent=True``  — the provider accepted the message.\n* ``notification_sent=False`` with a non-null ``notification_status`` — a\n  send was attempted and did NOT leave. The invitee does not know; tell\n  them, or re-send once delivery is restored.\n* ``notification_sent=False`` with ``notification_status=None`` — no\n  notification was applicable (the role-update path re-roles an existing\n  member and deliberately sends no mail). NOT a failure."},"MembershipClass":{"type":"string","enum":["homestead","charter"],"title":"MembershipClass","description":"FirstLight BETA membership-class overlay — orthogonal to ``SubscriptionTier``.\n\nA class is an *entitlement* overlay, never a role and never a billing\nstate (BETA Tier Backend Spec §3). It grants unlimited caps + complete\nfeature access within the product surface the holder is testing, for the\nduration of BETA. Only two values are representable; ``NULL`` on the\ncolumn is the third, load-bearing domain state (\"no overlay\") and is the\ndefault for the overwhelming majority of accounts.\n\n  * ``homestead`` — the five pre-BETA cohort members. Free for life.\n  * ``charter``   — the next fifty BETA clients. Same entitlement while\n    active; rolls off to a target tier at BETA close by explicit\n    founder decision (never an automatic timer).\n\nNATIVE ENUM, deliberately (ruling #6). Unlike ``PrimaryPersona`` /\nstatus tags — which are CHECK-over-text so a new value is a one-line\nmigration (CLAUDE.md §6) — this field is read by the entitlement\nresolver on a hot path where an out-of-vocabulary string must be\n*unrepresentable at the storage layer*, not caught by a defensive\nbranch. The cost — adding a value later needs an ``ALTER TYPE`` — is\ncorrect: minting a membership class should be a deliberate act. The\ncolumn MUST be declared with an explicit\n``sa.Enum(MembershipClass, name=\"membership_class_t\", create_type=False,\nnative_enum=True)`` so SA emits ``$N::membership_class_t`` casts against\nthe type the migration creates — see the DEFECT-J3.3 note on\n``Profile.primary_persona`` for what an inferred type name costs."},"MethodOfTake":{"type":"string","enum":["rifle","compound_bow","recurve_bow","crossbow","muzzleloader","shotgun","other"],"title":"MethodOfTake","description":"Weapon / method used for the harvest. Value strings match the\ncommon state-DNR enumeration so reports map 1:1 to regulatory\npaperwork (compound_bow vs recurve_bow are differentiated)."},"MigrationRevision":{"properties":{"revision":{"type":"string","title":"Revision"},"down_revision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Down Revision"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_applied":{"type":"boolean","title":"Is Applied"},"is_current_head":{"type":"boolean","title":"Is Current Head"}},"type":"object","required":["revision","is_applied","is_current_head"],"title":"MigrationRevision","description":"One entry in the alembic revision chain."},"MigrationsResponse":{"properties":{"as_of":{"type":"string","format":"date-time","title":"As Of"},"current_head":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Head","description":"Current applied head from alembic_version. None when alembic_version is missing (fresh DB) or unreachable."},"script_head":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Script Head","description":"Head revision from the bundled ScriptDirectory."},"is_in_sync":{"type":"boolean","title":"Is In Sync","description":"True iff current_head == script_head AND both are non-null."},"revisions":{"items":{"$ref":"#/components/schemas/MigrationRevision"},"type":"array","title":"Revisions","description":"Full chain newest → oldest (script-side order)."},"revision_count":{"type":"integer","title":"Revision Count","default":0}},"type":"object","required":["as_of","is_in_sync"],"title":"MigrationsResponse","description":"Top-level ``GET /admin/dev/migrations`` payload."},"ModelStatusResponse":{"properties":{"current_model":{"type":"string","title":"Current Model"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"eol_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Eol Date"},"days_until_eol":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days Until Eol"},"warning_level":{"type":"string","title":"Warning Level"},"recommended_successor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recommended Successor"}},"type":"object","required":["current_model","warning_level"],"title":"ModelStatusResponse","description":"AI model lifecycle status for /admin/ai/model-status."},"ModelVersionBlock":{"properties":{"current_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Version"},"deployment_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deployment Date"},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At"},"analyses_on_current_version":{"type":"integer","minimum":0.0,"title":"Analyses On Current Version","default":0}},"type":"object","title":"ModelVersionBlock","description":"Current model version + first/last seen timestamps.\n\n``deployment_date`` is the earliest ``analyses.created_at`` for\nthe current ``model_version`` — there is no explicit deployment\nledger today, so the first analysis stamped with the version is\nthe best proxy. ``last_seen_at`` is the most recent analysis.\nBoth ``None`` when no analyses carry a model_version yet."},"MostActiveCorridor":{"properties":{"from_camera":{"type":"string","title":"From Camera"},"to_camera":{"type":"string","title":"To Camera"},"species":{"type":"string","title":"Species"},"movement_count":{"type":"integer","title":"Movement Count"}},"type":"object","required":["from_camera","to_camera","species","movement_count"],"title":"MostActiveCorridor"},"MovementCorridor":{"properties":{"from_camera_id":{"type":"string","title":"From Camera Id"},"from_camera_name":{"type":"string","title":"From Camera Name"},"from_lat":{"type":"number","title":"From Lat"},"from_lng":{"type":"number","title":"From Lng"},"to_camera_id":{"type":"string","title":"To Camera Id"},"to_camera_name":{"type":"string","title":"To Camera Name"},"to_lat":{"type":"number","title":"To Lat"},"to_lng":{"type":"number","title":"To Lng"},"species":{"type":"string","title":"Species"},"movement_count":{"type":"integer","title":"Movement Count"},"avg_transit_hours":{"type":"number","title":"Avg Transit Hours"},"distance_km":{"type":"number","title":"Distance Km"},"first_seen":{"type":"string","title":"First Seen"},"last_seen":{"type":"string","title":"Last Seen"}},"type":"object","required":["from_camera_id","from_camera_name","from_lat","from_lng","to_camera_id","to_camera_name","to_lat","to_lng","species","movement_count","avg_transit_hours","distance_km","first_seen","last_seen"],"title":"MovementCorridor"},"MovementEvent":{"properties":{"species":{"type":"string","title":"Species"},"from_camera":{"type":"string","title":"From Camera"},"to_camera":{"type":"string","title":"To Camera"},"departed_at":{"type":"string","title":"Departed At"},"arrived_at":{"type":"string","title":"Arrived At"},"transit_hours":{"type":"number","title":"Transit Hours"},"distance_km":{"type":"number","title":"Distance Km"}},"type":"object","required":["species","from_camera","to_camera","departed_at","arrived_at","transit_hours","distance_km"],"title":"MovementEvent"},"MovementForecastResponse":{"properties":{"id":{"type":"string","title":"Id"},"profile_id":{"type":"string","title":"Profile Id"},"property_id":{"type":"string","title":"Property Id"},"species_taxon_id":{"type":"string","title":"Species Taxon Id"},"species_canonical_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species Canonical Name"},"species_scientific_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species Scientific Name"},"forecast_horizon_hours":{"type":"integer","title":"Forecast Horizon Hours"},"hourly_scores":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Hourly Scores"},"best_windows":{"items":{"$ref":"#/components/schemas/BestWindow"},"type":"array","title":"Best Windows"},"rationale":{"$ref":"#/components/schemas/Rationale"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"ml_delta":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ml Delta"},"combined_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Combined Score"},"hpi":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Hpi"},"adjusted_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Adjusted Score"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"}},"type":"object","required":["id","profile_id","property_id","species_taxon_id","forecast_horizon_hours","hourly_scores","best_windows","rationale","confidence","generated_at"],"title":"MovementForecastResponse"},"NearbyBuckResponse":{"properties":{"id":{"type":"string","title":"Id"},"antler_points":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Antler Points"},"antler_score_estimate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Antler Score Estimate"},"age_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Age Class"},"first_seen_at":{"type":"string","format":"date-time","title":"First Seen At"},"last_seen_at":{"type":"string","format":"date-time","title":"Last Seen At"},"sighting_count":{"type":"integer","title":"Sighting Count"},"property_count":{"type":"integer","title":"Property Count"},"antler_signature":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Antler Signature"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"distance_miles":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Distance Miles"}},"type":"object","required":["id","first_seen_at","last_seen_at","sighting_count","property_count","status","created_at"],"title":"NearbyBuckResponse","description":"A buck seen near a location — includes approximate distance."},"NoteResponse":{"properties":{"id":{"type":"string","title":"Id"},"client_id":{"type":"string","title":"Client Id"},"author_profile_id":{"type":"string","title":"Author Profile Id"},"note":{"type":"string","title":"Note"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","client_id","author_profile_id","note","created_at"],"title":"NoteResponse"},"NoticeDismissal":{"properties":{"last_seen_at":{"type":"string","title":"Last Seen At"},"dismissed_version":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"null"}],"title":"Dismissed Version"}},"additionalProperties":false,"type":"object","required":["last_seen_at"],"title":"NoticeDismissal"},"NotificationListResponse":{"properties":{"notifications":{"items":{"$ref":"#/components/schemas/NotificationResponse"},"type":"array","title":"Notifications"}},"type":"object","required":["notifications"],"title":"NotificationListResponse"},"NotificationPrefsResponse":{"properties":{"email_weekly_digest":{"type":"boolean","title":"Email Weekly Digest","default":true},"email_new_species":{"type":"boolean","title":"Email New Species","default":true},"email_predator_alerts":{"type":"boolean","title":"Email Predator Alerts","default":true},"email_camera_offline":{"type":"boolean","title":"Email Camera Offline","default":true},"email_low_battery":{"type":"boolean","title":"Email Low Battery","default":true},"email_tier_threshold":{"type":"boolean","title":"Email Tier Threshold","default":true},"email_sync_failures":{"type":"boolean","title":"Email Sync Failures","default":false}},"type":"object","title":"NotificationPrefsResponse"},"NotificationPrefsUpdate":{"properties":{"email_weekly_digest":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Email Weekly Digest"},"email_new_species":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Email New Species"},"email_predator_alerts":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Email Predator Alerts"},"email_camera_offline":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Email Camera Offline"},"email_low_battery":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Email Low Battery"},"email_tier_threshold":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Email Tier Threshold"},"email_sync_failures":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Email Sync Failures"}},"type":"object","title":"NotificationPrefsUpdate"},"NotificationResponse":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","title":"Kind"},"title":{"type":"string","title":"Title"},"body":{"type":"string","title":"Body"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Read At"}},"type":"object","required":["id","kind","title","body","created_at"],"title":"NotificationResponse"},"OnboardingChecklistItem":{"properties":{"key":{"type":"string","enum":["profile","property","cameras","branding","team"],"title":"Key"},"done":{"type":"boolean","title":"Done"}},"type":"object","required":["key","done"],"title":"OnboardingChecklistItem","description":"One checklist row. ``key`` is a stable step key; the frontend owns the\nlabel copy and the link target (the backend never returns hrefs)."},"OnboardingCompleteStepRequest":{"properties":{"step":{"type":"string","enum":["profile","property","cameras","branding","team"],"title":"Step"}},"type":"object","required":["step"],"title":"OnboardingCompleteStepRequest"},"OnboardingStateResponse":{"properties":{"profile_id":{"type":"string","title":"Profile Id"},"steps":{"$ref":"#/components/schemas/OnboardingSteps"},"completed":{"type":"boolean","title":"Completed"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"next_step":{"anyOf":[{"type":"string","enum":["profile","property","cameras","branding","team"]},{"type":"null"}],"title":"Next Step"},"applicable":{"type":"boolean","title":"Applicable","default":false},"checklist":{"items":{"$ref":"#/components/schemas/OnboardingChecklistItem"},"type":"array","title":"Checklist"}},"type":"object","required":["profile_id","steps","completed"],"title":"OnboardingStateResponse","description":"Onboarding checklist DERIVED from live data for the caller's active org\n(WLAI-513). Never a gate.\n\n``applicable`` + ``checklist`` are the authoritative fields. ``steps`` /\n``completed`` / ``next_step`` are kept for N-1 clients: when not\napplicable (FirstLight org, individual context, System Admin) every step\nreports true and ``completed`` is true so an N-1 client never routes into\nthe wizard. ``completed_at`` is always null — derived state has no\ncompletion timestamp (it can regress when the data it reads goes away)."},"OnboardingSteps":{"properties":{"profile":{"type":"boolean","title":"Profile","default":false},"property":{"type":"boolean","title":"Property","default":false},"cameras":{"type":"boolean","title":"Cameras","default":false},"branding":{"type":"boolean","title":"Branding","default":false},"team":{"type":"boolean","title":"Team","default":false}},"type":"object","title":"OnboardingSteps"},"OptOutsResponse":{"properties":{"sale_of_pi":{"type":"boolean","title":"Sale Of Pi"},"share_for_advertising":{"type":"boolean","title":"Share For Advertising"},"targeted_advertising":{"type":"boolean","title":"Targeted Advertising"},"profiling_significant":{"type":"boolean","title":"Profiling Significant"},"limit_sensitive_pi":{"type":"boolean","title":"Limit Sensitive Pi"},"source":{"type":"string","title":"Source"},"gpc_detected_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gpc Detected At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["sale_of_pi","share_for_advertising","targeted_advertising","profiling_significant","limit_sensitive_pi","source"],"title":"OptOutsResponse"},"OptOutsUpdateBody":{"properties":{"sale_of_pi":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sale Of Pi"},"share_for_advertising":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Share For Advertising"},"targeted_advertising":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Targeted Advertising"},"profiling_significant":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Profiling Significant"},"limit_sensitive_pi":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Limit Sensitive Pi"}},"type":"object","title":"OptOutsUpdateBody","description":"Any subset of the five toggles. Unspecified fields untouched."},"OptimalConditionEntry":{"properties":{"conditions":{"type":"string","title":"Conditions"},"temperature":{"type":"string","title":"Temperature"},"wind":{"type":"string","title":"Wind"},"total_sightings":{"type":"integer","title":"Total Sightings"},"days_with_conditions":{"type":"integer","title":"Days With Conditions"},"days_with_sightings":{"type":"integer","title":"Days With Sightings"},"sightings_per_day":{"type":"number","title":"Sightings Per Day"}},"type":"object","required":["conditions","temperature","wind","total_sightings","days_with_conditions","days_with_sightings","sightings_per_day"],"title":"OptimalConditionEntry"},"OptimalConditionsResponse":{"properties":{"species":{"type":"string","title":"Species"},"total_sightings":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Sightings"},"analysis_period_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Analysis Period Days"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"location":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Location"},"optimal_conditions":{"items":{"$ref":"#/components/schemas/OptimalConditionEntry"},"type":"array","title":"Optimal Conditions","default":[]}},"type":"object","required":["species"],"title":"OptimalConditionsResponse"},"OrgApproachingRenewal":{"properties":{"org_id":{"type":"string","title":"Org Id"},"org_name":{"type":"string","title":"Org Name"},"period_end":{"type":"string","format":"date-time","title":"Period End"},"days_until_renewal":{"type":"integer","title":"Days Until Renewal"}},"type":"object","required":["org_id","org_name","period_end","days_until_renewal"],"title":"OrgApproachingRenewal"},"OrgEntitlementRow":{"properties":{"capability_key":{"type":"string","title":"Capability Key"},"name":{"type":"string","title":"Name"},"enforcement":{"type":"string","title":"Enforcement"},"paywalled":{"type":"boolean","title":"Paywalled"},"enabled":{"type":"boolean","title":"Enabled"},"state":{"type":"string","title":"State"},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config"},"contract_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract Ref"},"granted_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Granted By"},"granted_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Granted At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["capability_key","name","enforcement","paywalled","enabled","state"],"title":"OrgEntitlementRow","description":"One catalog capability as it stands for one org.\n\n``state`` is the three-way the editor needs: ``granted`` (row, enabled),\n``declined`` (row, disabled) and ``absent`` (no row — never part of the\ncontract). Every catalog key appears exactly once, so the editor can render\nthe full list without a second catalog call."},"OrgEntitlementsResponse":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"product_line":{"type":"string","title":"Product Line"},"entitlements":{"items":{"$ref":"#/components/schemas/OrgEntitlementRow"},"type":"array","title":"Entitlements"},"changed":{"items":{"type":"string"},"type":"array","title":"Changed","default":[]}},"type":"object","required":["organization_id","product_line","entitlements"],"title":"OrgEntitlementsResponse"},"OrgEntitlementsUpdateRequest":{"properties":{"entitlements":{"items":{"$ref":"#/components/schemas/EntitlementGrantRequest"},"type":"array","minItems":1,"title":"Entitlements"},"contract_ref":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Contract Ref"}},"type":"object","required":["entitlements"],"title":"OrgEntitlementsUpdateRequest","description":"Body for ``PATCH /admin/organizations/{id}/entitlements``.\n\n``enabled: false`` turns a capability off by keeping its row as a declined\ngrant — rows are never deleted, so \"considered and declined\" stays\ndistinguishable from \"never part of the contract\". ``config: null`` (or an\nomitted ``config``) leaves the stored config untouched; ``{}`` clears it."},"OrgMembershipSummary":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"organization_name":{"type":"string","title":"Organization Name"},"role":{"$ref":"#/components/schemas/OrganizationRole"}},"type":"object","required":["organization_id","organization_name","role"],"title":"OrgMembershipSummary","description":"One org the caller belongs to (RBAC §5). The FE builds its\ncontext picker from the list of these on ``/auth/me``."},"OrgOwnerCreate":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"full_name":{"type":"string","title":"Full Name"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"role":{"type":"string","title":"Role","default":"owner"},"profile_exists":{"type":"boolean","title":"Profile Exists","default":false}},"type":"object","required":["email","full_name"],"title":"OrgOwnerCreate"},"OrgPlanCapability":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"summary":{"type":"string","title":"Summary"},"enforcement":{"type":"string","title":"Enforcement"},"included":{"type":"boolean","title":"Included"}},"type":"object","required":["key","name","summary","enforcement","included"],"title":"OrgPlanCapability","description":"One catalog capability as the outfitter sees it."},"OrgPlanResponse":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"organization_name":{"type":"string","title":"Organization Name"},"capabilities":{"items":{"$ref":"#/components/schemas/OrgPlanCapability"},"type":"array","title":"Capabilities"},"included_count":{"type":"integer","title":"Included Count"},"total_count":{"type":"integer","title":"Total Count"},"upsell_prompt":{"type":"string","title":"Upsell Prompt"}},"type":"object","required":["organization_id","organization_name","capabilities","included_count","total_count","upsell_prompt"],"title":"OrgPlanResponse","description":"The \"Your plan\" page payload for the caller's OWN organization.\n\n``organization_id`` is the caller's own org and is safe to return: the\nendpoint resolves it from the active context and accepts no org identifier\nof any kind, so no other organization's id is reachable through this shape."},"OrgProfileUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Name"},"timezone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Timezone"}},"type":"object","title":"OrgProfileUpdateRequest","description":"Body for the owner-facing ``PATCH /organization/me`` (T7).\n\nName + timezone only — ``logo_url``, seats, and the legacy ``type``\nfield are intentionally excluded; those live on the platform-admin\nsurface (``PATCH /admin/organizations/{id}``)."},"OrgQrSettingsResponse":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"qr_auto_generate":{"type":"boolean","title":"Qr Auto Generate"},"qr_white_label_enabled":{"type":"boolean","title":"Qr White Label Enabled"}},"type":"object","required":["organization_id","qr_auto_generate","qr_white_label_enabled"],"title":"OrgQrSettingsResponse"},"OrgQrSettingsUpdate":{"properties":{"qr_auto_generate":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Qr Auto Generate"},"qr_white_label_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Qr White Label Enabled"}},"type":"object","title":"OrgQrSettingsUpdate"},"OrganizationCreateRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"timezone":{"type":"string","maxLength":64,"minLength":1,"title":"Timezone"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"product_line":{"$ref":"#/components/schemas/ProductLine"},"tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tier"},"seats_purchased":{"type":"integer","minimum":1.0,"title":"Seats Purchased"},"client_seats_purchased":{"type":"integer","minimum":0.0,"title":"Client Seats Purchased"},"hunters_contracted":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Hunters Contracted"},"owner":{"$ref":"#/components/schemas/OrgOwnerCreate"},"entitlements":{"anyOf":[{"items":{"$ref":"#/components/schemas/EntitlementGrantRequest"},"type":"array"},{"type":"null"}],"title":"Entitlements"},"contract_ref":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Contract Ref"},"branding":{"anyOf":[{"$ref":"#/components/schemas/BrandingStub"},{"type":"null"}]}},"type":"object","required":["name","timezone","product_line","seats_purchased","client_seats_purchased","owner"],"title":"OrganizationCreateRequest","description":"Unified creation payload — backs BOTH tabs of the WLAI-304 modal.\n\nWHY ONE MODEL AND NOT A DISCRIMINATED UNION. The design called for a\nPydantic tagged union on ``product_line``. A tagged union reads the tag from\nthe raw input BEFORE defaults apply, which broke the old ``/admin/orgs``\nwizard (it sent no ``product_line``). That wizard is retired, and WLAI-399\nmade ``product_line`` required, but the single model with cross-field\nvalidation stays: it is what the validator below is written against."},"OrganizationCreateResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"product_line":{"type":"string","title":"Product Line"},"tier":{"type":"string","title":"Tier"},"status":{"type":"string","title":"Status"},"seats_purchased":{"type":"integer","title":"Seats Purchased"},"client_seats_purchased":{"type":"integer","title":"Client Seats Purchased"},"hunters_contracted":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Hunters Contracted"},"owner_profile_id":{"type":"string","title":"Owner Profile Id"},"owner_profile_created":{"type":"boolean","title":"Owner Profile Created"},"entitlements_granted":{"items":{"type":"string"},"type":"array","title":"Entitlements Granted","default":[]},"contract_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract Ref"}},"type":"object","required":["id","name","product_line","tier","status","seats_purchased","client_seats_purchased","hunters_contracted","owner_profile_id","owner_profile_created"],"title":"OrganizationCreateResponse","description":"Echoes PERSISTED state, never the request body.\n\nEvery field here is read off the flushed ORM objects. The previous version\nechoed ``body.seats_purchased`` straight back, which is the shape of the\nrecurring \"invisible successful write\" drift — an API reporting a value the\ndatabase never stored."},"OrganizationListRow":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"tier":{"type":"string","title":"Tier"},"status":{"type":"string","title":"Status"},"staff_seats_used":{"type":"integer","title":"Staff Seats Used"},"staff_seats_purchased":{"type":"integer","title":"Staff Seats Purchased"},"client_seats_used":{"type":"integer","title":"Client Seats Used"},"client_seats_purchased":{"type":"integer","title":"Client Seats Purchased"},"hunters_contracted":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Hunters Contracted"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"owner_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Email"}},"type":"object","required":["id","name","tier","status","staff_seats_used","staff_seats_purchased","client_seats_used","client_seats_purchased","created_at"],"title":"OrganizationListRow","description":"One row of the admin console's organizations table\n(``GET /admin/organizations``). The console's \"Guides\" count maps to\n``staff_seats_used``. No region/state/contract_start — those have no\nDB backing (they were FE mock columns) and are intentionally omitted.\n``owner_email`` is the email of the org's ``owner`` member (the first,\nif several); ``None`` when the org has no owner row."},"OrganizationResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"timezone":{"type":"string","title":"Timezone"},"seats_purchased":{"type":"integer","title":"Seats Purchased"},"seats_used":{"type":"integer","title":"Seats Used"},"staff_seats_purchased":{"type":"integer","title":"Staff Seats Purchased"},"staff_seats_used":{"type":"integer","title":"Staff Seats Used"},"client_seats_purchased":{"type":"integer","title":"Client Seats Purchased"},"client_seats_used":{"type":"integer","title":"Client Seats Used"},"product_line":{"type":"string","title":"Product Line"}},"type":"object","required":["id","name","timezone","seats_purchased","seats_used","staff_seats_purchased","staff_seats_used","client_seats_purchased","client_seats_used","product_line"],"title":"OrganizationResponse"},"OrganizationRole":{"type":"string","enum":["owner","manager","guide","member"],"title":"OrganizationRole","description":"Org-level membership role.\n\nPR-J1 / Phase 2 shipped ``owner`` and ``member`` only. PR-J5 /\nPhase 6 adds ``manager`` to support the permissions matrix:\nmanagers can read/write properties / cameras / photos but\ncannot administer the organization itself (no ``write_org``).\nClients & Team adds ``guide`` between manager and member —\na JWT-bearing org member with scoped access to the sessions\nthey are assigned to. Distinct from ``clients.role='guide'``,\nwhich is an outfitter-roster discriminator with no auth weight.\n\nSeparate enum from ``PropertyRole`` on purpose: organization\nmembership and property membership are independent authorization\nplanes. A user can be ``owner`` of an organization and ``viewer``\non a property the org sublets, or vice versa."},"OutfitterHunterCreate":{"properties":{"first_name":{"type":"string","maxLength":100,"minLength":1,"title":"First Name"},"last_name":{"type":"string","maxLength":100,"minLength":1,"title":"Last Name"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Phone"},"home_state":{"anyOf":[{"type":"string","maxLength":2,"minLength":2},{"type":"null"}],"title":"Home State"},"license_number":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"License Number"},"emergency_contact_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Emergency Contact Name"},"emergency_contact_phone":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Emergency Contact Phone"},"target_species":{"items":{"type":"string"},"type":"array","title":"Target Species"},"weapon_preference":{"anyOf":[{"$ref":"#/components/schemas/WeaponPreference"},{"type":"null"}]},"dietary_restrictions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dietary Restrictions"},"accessibility_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accessibility Notes"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["first_name","last_name"],"title":"OutfitterHunterCreate"},"OutfitterHunterResponse":{"properties":{"first_name":{"type":"string","maxLength":100,"minLength":1,"title":"First Name"},"last_name":{"type":"string","maxLength":100,"minLength":1,"title":"Last Name"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Phone"},"home_state":{"anyOf":[{"type":"string","maxLength":2,"minLength":2},{"type":"null"}],"title":"Home State"},"license_number":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"License Number"},"emergency_contact_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Emergency Contact Name"},"emergency_contact_phone":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Emergency Contact Phone"},"target_species":{"items":{"type":"string"},"type":"array","title":"Target Species"},"weapon_preference":{"anyOf":[{"$ref":"#/components/schemas/WeaponPreference"},{"type":"null"}]},"dietary_restrictions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dietary Restrictions"},"accessibility_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accessibility Notes"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"is_active":{"type":"boolean","title":"Is Active","default":true},"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"created_by_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"hunt_count":{"type":"integer","title":"Hunt Count","default":0},"last_hunt_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Hunt Date"}},"type":"object","required":["first_name","last_name","id","organization_id","created_at","updated_at"],"title":"OutfitterHunterResponse","description":"List + detail response. ``hunt_count`` and ``last_hunt_date`` are\naggregated by the service; they're absent on a freshly-created\nhunter (both 0 / None)."},"OutfitterHunterUpdate":{"properties":{"first_name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Last Name"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Phone"},"home_state":{"anyOf":[{"type":"string","maxLength":2,"minLength":2},{"type":"null"}],"title":"Home State"},"license_number":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"License Number"},"emergency_contact_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Emergency Contact Name"},"emergency_contact_phone":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Emergency Contact Phone"},"target_species":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Target Species"},"weapon_preference":{"anyOf":[{"$ref":"#/components/schemas/WeaponPreference"},{"type":"null"}]},"dietary_restrictions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dietary Restrictions"},"accessibility_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accessibility Notes"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"OutfitterHunterUpdate","description":"All fields optional — PATCH semantics."},"OutfitterResponse":{"properties":{"id":{"type":"string","title":"Id"},"profile_id":{"type":"string","title":"Profile Id"},"name":{"type":"string","title":"Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","profile_id","name","created_at"],"title":"OutfitterResponse"},"OverlayResult":{"properties":{"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"captured_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Captured At"},"temperature_f":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature F"},"moon_phase":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Moon Phase"},"device_camera_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Camera Name"}},"type":"object","title":"OverlayResult","description":"Pixel-overlay data-strip read off the burned-in banner (INGEST wave,\nAsana 1216383222965847, channel b). Populated from ``analyses.raw_response``\n(no dedicated column). ``captured_at`` doubles as the no-EXIF ``taken_at``\nfallback at ingest."},"OverlayType":{"type":"string","enum":["boundary","corridor","bedding_area","hunt_zone","sanctuary","access_road"],"title":"OverlayType","description":"Discriminator for `property_overlays.overlay_type`.\n\nSpatial intelligence layers — polygons and lines that inform\nhunting strategy. Named physical assets (water sources, food plots,\naccess points like gates/parking/trailheads) live on the `assets`\ntable instead; that boundary is intentional. A bedding area is a\nspatial region; a food-plot feeder is a physical asset with a\nfill schedule and maintenance status. Different things, different\ntables."},"PaletteRequest":{"properties":{"palette":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":8},{"type":"null"}],"title":"Palette"},"brand_color":{"anyOf":[{"type":"string","maxLength":9},{"type":"null"}],"title":"Brand Color"},"brand_color_source":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Brand Color Source"}},"type":"object","title":"PaletteRequest","description":"Body for storing the extracted swatch set (WLAI-309).\n\n``palette`` is the auto-extracted set; ``[]`` clears it. ``brand_color`` and\n``brand_color_source`` are optional so that \"here is the palette, and the\nuser clicked this swatch\" is ONE request — splitting it would leave a window\nwhere the stored colour belongs to the previous logo's palette.\n\nSending ``brand_color_source`` alone toggles auto/custom without changing the\ncolour, which is the \"Auto-detect from logo\" switch on its own."},"PasskeyResponse":{"properties":{"id":{"type":"string","title":"Id"},"device_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Name"},"created_at":{"type":"string","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Used At"}},"type":"object","required":["id","device_name","created_at","last_used_at"],"title":"PasskeyResponse"},"PatternListResponse":{"properties":{"patterns":{"items":{"$ref":"#/components/schemas/TemporalPatternResponse"},"type":"array","title":"Patterns"}},"type":"object","required":["patterns"],"title":"PatternListResponse"},"PauseResponse":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"current_period_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Period End"}},"type":"object","required":["status","message"],"title":"PauseResponse"},"PeakWindow":{"properties":{"start":{"type":"string","title":"Start"},"end":{"type":"string","title":"End"}},"type":"object","required":["start","end"],"title":"PeakWindow"},"PhotoAnalysisEnvelope":{"properties":{"photo_id":{"type":"string","title":"Photo Id"},"analysis":{"anyOf":[{"$ref":"#/components/schemas/AnalysisResultResponse"},{"type":"null"}]},"photo_analysis_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Photo Analysis Status"}},"type":"object","required":["photo_id"],"title":"PhotoAnalysisEnvelope","description":"Wrapper used when callers want either the analysis or an\nexplicit \"no analysis yet\" signal without an HTTP 404.\n\nThe frontend prefers this over ``null`` because it can render\na \"pending\" state distinct from a failed network request."},"PhotoCameraReassignRequest":{"properties":{"camera_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Id"}},"type":"object","title":"PhotoCameraReassignRequest","description":"DEFECT-098: body for `PATCH /photos/{id}` — set/clear a photo's camera.\n\n``camera_id=None`` unassigns; a non-null camera must belong to the photo's\nproperty."},"PhotoCaptureTimeRequest":{"properties":{"taken_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Taken At"}},"type":"object","title":"PhotoCaptureTimeRequest","description":"Body for ``PATCH /photos/{id}/capture-time`` — the manual capture-time\nwriter (WP-7 rank 1, the S4 remedy for null-capture rows).\n\nA datetime sets a human-authoritative ``taken_at`` with\n``taken_at_source='manual_entry'``, which outranks every automated writer.\n``None`` clears a *previous manual* correction only (the route rejects a\nclear on a non-manual timestamp).\n\nTZ-3: the value is NOT normalized here. The manual entry describes when an\nanimal was on that land, so the handler interprets the wall-clock digits as\nPROPERTY-local (stripping any client offset, which reflects where the user is\nsitting, not the property). That conversion needs the property's timezone,\nwhich this schema has no access to — so it lives in the route handler."},"PhotoCurationTagRequest":{"properties":{"curation_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Curation Tag"}},"type":"object","title":"PhotoCurationTagRequest","description":"Body for ``PATCH /photos/{id}/curation_tag``.\n\n``curation_tag`` is one of ``constants.CURATION_TAGS`` or ``None`` (clears).\nValidated against the app constant so an invalid value is a 422 at parse\ntime, before the DB write. Canonical lowercase_underscore storage."},"PhotoDetailResponse":{"properties":{"id":{"type":"string","title":"Id"},"camera_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Id"},"camera_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Name"},"property_id":{"type":"string","title":"Property Id"},"r2_key":{"type":"string","title":"R2 Key"},"thumbnail_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail R2 Key"},"original_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Filename"},"file_size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"File Size Bytes"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime Type"},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Height"},"taken_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Taken At"},"taken_at_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taken At Source"},"camera_heading":{"anyOf":[{"$ref":"#/components/schemas/CameraHeading"},{"type":"null"}]},"analysis_status":{"$ref":"#/components/schemas/AnalysisStatus"},"is_favorite":{"type":"boolean","title":"Is Favorite"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"curation_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Curation Tag"},"duplicate_of":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Duplicate Of"},"is_primary":{"type":"boolean","title":"Is Primary","default":true},"skip_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Skip Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"primary_species":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Species"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"species_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Species Count"},"subject_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Subject Count"},"original_species":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Species"},"is_corrected":{"type":"boolean","title":"Is Corrected","default":false},"exif_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Exif Data"},"stand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stand Id"},"stand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stand Name"},"species":{"items":{"type":"string"},"type":"array","title":"Species"},"subjects":{"items":{"$ref":"#/components/schemas/SubjectResult"},"type":"array","title":"Subjects"},"behaviors":{"items":{"type":"string"},"type":"array","title":"Behaviors"},"corrected_species":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Corrected Species"},"weather_at_capture":{"$ref":"#/components/schemas/WeatherAtCapture"},"antler_estimate":{"anyOf":[{"$ref":"#/components/schemas/AntlerEstimate"},{"type":"null"}]}},"type":"object","required":["id","property_id","r2_key","thumbnail_r2_key","original_filename","file_size_bytes","mime_type","width","height","taken_at","analysis_status","is_favorite","tags","created_at"],"title":"PhotoDetailResponse","description":"Full per-photo intelligence envelope for the detail modal (Gallery B1).\n\nExtends the detail schema (``PhotoResponse``, incl. ``exif_data``) with the\nmulti-subject story surfaced from the joined ``Analysis`` + ``Camera``/``Stand``.\nThe antler estimate (B5) and structured weather (B6) land in later workstreams;\nthis envelope deliberately omits them. Naming note: ``taken_at``/``created_at``\nstay as-is (FE maps to captured_at/uploaded_at) — no rename, per Nathan."},"PhotoFavoriteRequest":{"properties":{"is_favorite":{"type":"boolean","title":"Is Favorite"}},"type":"object","required":["is_favorite"],"title":"PhotoFavoriteRequest","description":"Body for ``PATCH /photos/{id}/favorite`` — idempotent explicit set.\n\nDistinct from the legacy ``POST /photos/{id}/favorite`` toggle (which flips\nthe bit): an explicit ``is_favorite`` value is race-free for the photo-detail\nmodal star (a double-tap converges instead of ping-ponging)."},"PhotoIngestSource":{"type":"string","enum":["portal","manual_upload","zip_ingest","desktop_uploader","csv_url_list"],"title":"PhotoIngestSource","description":"Where a photo entered the system. Set on upload, never changed."},"PhotoListResponse":{"properties":{"id":{"type":"string","title":"Id"},"camera_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Id"},"camera_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Name"},"property_id":{"type":"string","title":"Property Id"},"r2_key":{"type":"string","title":"R2 Key"},"thumbnail_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail R2 Key"},"original_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Filename"},"file_size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"File Size Bytes"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime Type"},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Height"},"taken_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Taken At"},"taken_at_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taken At Source"},"camera_heading":{"anyOf":[{"$ref":"#/components/schemas/CameraHeading"},{"type":"null"}]},"analysis_status":{"$ref":"#/components/schemas/AnalysisStatus"},"is_favorite":{"type":"boolean","title":"Is Favorite"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"curation_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Curation Tag"},"duplicate_of":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Duplicate Of"},"is_primary":{"type":"boolean","title":"Is Primary","default":true},"skip_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Skip Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"primary_species":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Species"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"species_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Species Count"},"subject_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Subject Count"},"original_species":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Species"},"is_corrected":{"type":"boolean","title":"Is Corrected","default":false}},"type":"object","required":["id","property_id","r2_key","thumbnail_r2_key","original_filename","file_size_bytes","mime_type","width","height","taken_at","analysis_status","is_favorite","tags","created_at"],"title":"PhotoListResponse","description":"Lean gallery-tile schema — the fields a grid tile needs, nothing more.\n\nDeliberately excludes the heavy per-photo JSONB blobs (``exif_data`` with\nits base64 MakerNote — ~54 kB/photo — plus ``oem_labels`` / ``portal_metadata``,\nwhich were never on this response anyway). A cursor page of ~25 photos was\n~1.3 MB because each row embedded the full ``exif_data``; the detail endpoint\n(:class:`PhotoResponse`) still returns it for the photo panel. Do NOT add\ndetail-only fields here."},"PhotoNoteCreate":{"properties":{"body":{"type":"string","maxLength":2000,"minLength":1,"title":"Body"}},"type":"object","required":["body"],"title":"PhotoNoteCreate"},"PhotoNoteResponse":{"properties":{"id":{"type":"string","title":"Id"},"photo_id":{"type":"string","title":"Photo Id"},"author_id":{"type":"string","title":"Author Id"},"author_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Name"},"body":{"type":"string","title":"Body"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","photo_id","author_id","body","created_at","updated_at"],"title":"PhotoNoteResponse"},"PhotoNoteUpdate":{"properties":{"body":{"type":"string","maxLength":2000,"minLength":1,"title":"Body"}},"type":"object","required":["body"],"title":"PhotoNoteUpdate"},"PhotoProcessingBlock":{"properties":{"median_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Seconds"},"p95_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"P95 Seconds"},"analyses_processed":{"type":"integer","minimum":0.0,"title":"Analyses Processed"}},"type":"object","required":["analyses_processed"],"title":"PhotoProcessingBlock","description":"Photo processing speed metrics.\n\nBETA: median + p95 come from CloudWatch which is stubbed; both\nare ``None`` until the IAM role + namespace are provisioned.\n``analyses_processed`` is the real internal-DB count and lands\nregardless of CloudWatch state."},"PhotoResponse":{"properties":{"id":{"type":"string","title":"Id"},"camera_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Id"},"camera_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Name"},"property_id":{"type":"string","title":"Property Id"},"r2_key":{"type":"string","title":"R2 Key"},"thumbnail_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail R2 Key"},"original_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Filename"},"file_size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"File Size Bytes"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime Type"},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Height"},"taken_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Taken At"},"taken_at_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taken At Source"},"camera_heading":{"anyOf":[{"$ref":"#/components/schemas/CameraHeading"},{"type":"null"}]},"analysis_status":{"$ref":"#/components/schemas/AnalysisStatus"},"is_favorite":{"type":"boolean","title":"Is Favorite"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"curation_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Curation Tag"},"duplicate_of":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Duplicate Of"},"is_primary":{"type":"boolean","title":"Is Primary","default":true},"skip_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Skip Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"primary_species":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Species"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"species_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Species Count"},"subject_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Subject Count"},"original_species":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Species"},"is_corrected":{"type":"boolean","title":"Is Corrected","default":false},"exif_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Exif Data"}},"type":"object","required":["id","property_id","r2_key","thumbnail_r2_key","original_filename","file_size_bytes","mime_type","width","height","taken_at","analysis_status","is_favorite","tags","created_at"],"title":"PhotoResponse","description":"Full photo schema for the DETAIL endpoint — every lean tile field plus\nthe heavy metadata the photo panel consumes."},"PhotoSearchResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PhotoSummary"},"type":"array","title":"Items"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"}},"type":"object","required":["items","limit","offset"],"title":"PhotoSearchResponse","description":"Paginated result for species + behavior searches."},"PhotoStatsResponse":{"properties":{"capture_count":{"type":"integer","title":"Capture Count"},"species_count":{"type":"integer","title":"Species Count"},"subject_count":{"type":"integer","title":"Subject Count"},"behavior_count":{"type":"integer","title":"Behavior Count"},"duplicate_count":{"type":"integer","title":"Duplicate Count"}},"type":"object","required":["capture_count","species_count","subject_count","behavior_count","duplicate_count"],"title":"PhotoStatsResponse","description":"Gallery B3 header metrics, scoped to the SAME filter set as the list.\n\n``subject_count`` (SUM of per-frame individuals) EXCEEDS ``capture_count``\nexactly when multi-subject frames are present — that delta is the product\nstory and is computed, not estimated."},"PhotoSummary":{"properties":{"id":{"type":"string","title":"Id"},"property_id":{"type":"string","title":"Property Id"},"camera_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Id"},"r2_key":{"type":"string","title":"R2 Key"},"thumbnail_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail R2 Key"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"taken_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Taken At"}},"type":"object","required":["id","property_id","r2_key"],"title":"PhotoSummary","description":"Trimmed photo shape for species/behavior search results.\n\nIntentionally narrow — the gallery already has its own full\nphoto schema. This one is for the AI search endpoints which\nonly need enough to render a thumbnail + jump link."},"PhotoUploadInitRequest":{"properties":{"filename":{"type":"string","maxLength":256,"minLength":1,"title":"Filename"},"content_type":{"type":"string","enum":["image/jpeg","image/png"],"title":"Content Type","default":"image/jpeg"}},"type":"object","required":["filename"],"title":"PhotoUploadInitRequest"},"PhotoUploadInitResponse":{"properties":{"photo_id":{"type":"string","title":"Photo Id"},"upload_url":{"type":"string","title":"Upload Url"},"object_key":{"type":"string","title":"Object Key"},"expires_in":{"type":"integer","title":"Expires In"}},"type":"object","required":["photo_id","upload_url","object_key","expires_in"],"title":"PhotoUploadInitResponse"},"PhotosByTier":{"properties":{"tier":{"type":"string","title":"Tier"},"avg_photos":{"type":"number","title":"Avg Photos"}},"type":"object","required":["tier","avg_photos"],"title":"PhotosByTier"},"PhotosPerDay":{"properties":{"date":{"type":"string","title":"Date"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["date","count"],"title":"PhotosPerDay"},"PipelineActivityResponse":{"properties":{"status":{"type":"string","title":"Status","description":"'active' when anything is in flight, else 'idle'."},"uploads_in_flight":{"type":"integer","title":"Uploads In Flight","description":"UploadBatch rows with status pending/processing that were touched inside the activity window."},"analyses_in_flight":{"type":"integer","title":"Analyses In Flight","description":"Non-deleted Photo rows with analysis_status pending/processing that were touched inside the activity window."},"stale_uploads":{"type":"integer","title":"Stale Uploads","description":"UploadBatch rows stuck in pending/processing but NOT touched inside the window — abandoned or crashed work. Reported separately and deliberately excluded from ``status``: prod carries months-old stuck rows, and folding them in would pin this card to 'active' forever."},"stale_analyses":{"type":"integer","title":"Stale Analyses","description":"Photo rows stuck in pending/processing outside the window. See ``stale_uploads``."},"uploads_incomplete_counters":{"type":"integer","title":"Uploads Incomplete Counters","description":"Diagnostic, NOT part of ``status``. UploadBatch rows where total_files > processed + duplicate + failed + rejected — i.e. the per-file counters do not add up to the members considered. Includes ``rejected_files``, the fifth counter (migration r3j1ct0001); omitting it marks every batch containing OS cruft as permanently incomplete. Unbounded by the window so counter drift is visible wherever it occurs."},"activity_window_minutes":{"type":"integer","title":"Activity Window Minutes","description":"Recency bound applied to the in-flight queries. 15 by default."},"as_of":{"type":"string","format":"date-time","title":"As Of"}},"type":"object","required":["status","uploads_in_flight","analyses_in_flight","stale_uploads","stale_analyses","uploads_incomplete_counters","activity_window_minutes","as_of"],"title":"PipelineActivityResponse","description":"Is the ingest / analysis pipeline mid-flight right now?\n\nIdle-vs-active is driven by lifecycle **status** bounded to a\nrecency window (WLAI-162 rulings 2+3), not by counter arithmetic:\na genuinely active batch can have balanced counters mid-run, so an\nAND of the two risks a false Idle during a real upload."},"PipelineResponse":{"properties":{"overall_status":{"type":"string","title":"Overall Status"},"stages":{"items":{"$ref":"#/components/schemas/PipelineStage"},"type":"array","title":"Stages"},"dlq_depth":{"type":"integer","title":"Dlq Depth"},"worker_last_heartbeat":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Worker Last Heartbeat"}},"type":"object","required":["overall_status","stages","dlq_depth"],"title":"PipelineResponse"},"PipelineStage":{"properties":{"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"detail":{"type":"string","title":"Detail"}},"type":"object","required":["name","status","detail"],"title":"PipelineStage"},"PlacementAccount":{"properties":{"resolved_from":{"type":"string","title":"Resolved From"},"product_line":{"type":"string","title":"Product Line"},"tier":{"type":"string","title":"Tier"}},"type":"object","required":["resolved_from","product_line","tier"],"title":"PlacementAccount","description":"The plan of the account that OWNS the property — never the viewer's."},"PlacementActions":{"properties":{"can_place_camera":{"type":"boolean","title":"Can Place Camera"}},"type":"object","required":["can_place_camera"],"title":"PlacementActions"},"PlacementDisclosure":{"properties":{"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"}},"type":"object","required":["code","message"],"title":"PlacementDisclosure"},"PlacementPick":{"properties":{"pick_id":{"type":"string","title":"Pick Id"},"rank":{"type":"integer","title":"Rank"},"lat":{"type":"number","title":"Lat"},"lng":{"type":"number","title":"Lng"},"heading":{"$ref":"#/components/schemas/CameraHeading"},"heading_deg":{"type":"integer","title":"Heading Deg"},"suggested_height_ft":{"type":"integer","title":"Suggested Height Ft"},"rationale_codes":{"items":{"type":"string"},"type":"array","title":"Rationale Codes"},"rationale_text":{"type":"string","title":"Rationale Text"},"wind_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wind Note"},"confidence":{"type":"string","title":"Confidence"},"kind":{"type":"string","title":"Kind"},"move_camera_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Move Camera Id"}},"type":"object","required":["pick_id","rank","lat","lng","heading","heading_deg","suggested_height_ft","rationale_codes","rationale_text","wind_note","confidence","kind"],"title":"PlacementPick"},"PlatformHealthSummary":{"properties":{"system_status":{"type":"string","title":"System Status"},"uptime_pct":{"type":"number","title":"Uptime Pct"},"errors_last_hour":{"type":"integer","title":"Errors Last Hour"},"active_organizations":{"type":"integer","title":"Active Organizations"},"new_orgs_this_week":{"type":"integer","title":"New Orgs This Week"},"mrr_usd":{"type":"number","title":"Mrr Usd"},"active_subscriptions":{"type":"integer","title":"Active Subscriptions"},"tiers_active":{"type":"integer","title":"Tiers Active"},"dlq_count":{"type":"integer","title":"Dlq Count"}},"type":"object","required":["system_status","uptime_pct","errors_last_hour","active_organizations","new_orgs_this_week","mrr_usd","active_subscriptions","tiers_active","dlq_count"],"title":"PlatformHealthSummary"},"PortalRequest":{"properties":{"return_url":{"type":"string","title":"Return Url"}},"type":"object","required":["return_url"],"title":"PortalRequest"},"PortalResponse":{"properties":{"portal_url":{"type":"string","title":"Portal Url"}},"type":"object","required":["portal_url"],"title":"PortalResponse"},"PredatorBulkImportFailedRow":{"properties":{"row_num":{"type":"integer","title":"Row Num"},"error":{"type":"string","title":"Error"}},"type":"object","required":["row_num","error"],"title":"PredatorBulkImportFailedRow"},"PredatorBulkImportResponse":{"properties":{"total_rows_attempted":{"type":"integer","title":"Total Rows Attempted"},"total_imported":{"type":"integer","title":"Total Imported"},"failed_rows":{"items":{"$ref":"#/components/schemas/PredatorBulkImportFailedRow"},"type":"array","title":"Failed Rows"},"success":{"type":"boolean","title":"Success"}},"type":"object","required":["total_rows_attempted","total_imported","failed_rows","success"],"title":"PredatorBulkImportResponse"},"PredatorLatestResponse":{"properties":{"last_detection_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Detection At"},"undated":{"type":"boolean","title":"Undated","default":false}},"type":"object","title":"PredatorLatestResponse"},"PredatorSightingCreateRequest":{"properties":{"species":{"type":"string","enum":["coyote","bobcat","mountain_lion","hog"],"title":"Species"},"latitude":{"type":"number","maximum":90.0,"minimum":-90.0,"title":"Latitude"},"longitude":{"type":"number","maximum":180.0,"minimum":-180.0,"title":"Longitude"},"sighting_date":{"type":"string","format":"date","title":"Sighting Date"},"count":{"type":"integer","minimum":1.0,"title":"Count","default":1},"confidence":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Confidence","default":1.0},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"sighting_metadata":{"additionalProperties":true,"type":"object","title":"Sighting Metadata"},"sighting_time":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Sighting Time","description":"HH:MM[:SS]"},"observer":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Observer"},"notes":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Notes"},"photo_urls":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Photo Urls"}},"type":"object","required":["species","latitude","longitude","sighting_date"],"title":"PredatorSightingCreateRequest"},"PredatorSightingDetailResponse":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"property_id":{"type":"string","title":"Property Id"},"species":{"type":"string","title":"Species"},"latitude":{"type":"number","title":"Latitude"},"longitude":{"type":"number","title":"Longitude"},"sighting_date":{"type":"string","format":"date","title":"Sighting Date"},"count":{"type":"integer","title":"Count"},"confidence":{"type":"number","title":"Confidence"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"sighting_metadata":{"additionalProperties":true,"type":"object","title":"Sighting Metadata"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"photos":{"items":{"$ref":"#/components/schemas/PredatorSightingPhoto"},"type":"array","title":"Photos"}},"type":"object","required":["id","organization_id","property_id","species","latitude","longitude","sighting_date","count","confidence","sighting_metadata","created_at"],"title":"PredatorSightingDetailResponse","description":"Detail variant — includes the photo evidence list. The\nplain create + list path uses the lighter ``PredatorSightingResponse``\nshape to keep payloads small for the heatmap layer."},"PredatorSightingPhoto":{"properties":{"id":{"type":"string","title":"Id"},"r2_key":{"type":"string","title":"R2 Key"},"thumbnail_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail R2 Key"},"original_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Filename"},"file_size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"File Size Bytes"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime Type"},"analysis_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Status"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","r2_key"],"title":"PredatorSightingPhoto","description":"Trimmed photo shape returned alongside a predator sighting."},"PredatorSightingResponse":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"property_id":{"type":"string","title":"Property Id"},"species":{"type":"string","title":"Species"},"latitude":{"type":"number","title":"Latitude"},"longitude":{"type":"number","title":"Longitude"},"sighting_date":{"type":"string","format":"date","title":"Sighting Date"},"count":{"type":"integer","title":"Count"},"confidence":{"type":"number","title":"Confidence"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"sighting_metadata":{"additionalProperties":true,"type":"object","title":"Sighting Metadata"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","organization_id","property_id","species","latitude","longitude","sighting_date","count","confidence","sighting_metadata","created_at"],"title":"PredatorSightingResponse"},"PredatorSightingUpdateRequest":{"properties":{"species":{"anyOf":[{"type":"string","enum":["coyote","bobcat","mountain_lion","hog"]},{"type":"null"}],"title":"Species"},"latitude":{"anyOf":[{"type":"number","maximum":90.0,"minimum":-90.0},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number","maximum":180.0,"minimum":-180.0},{"type":"null"}],"title":"Longitude"},"sighting_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Sighting Date"},"sighting_time":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Sighting Time"},"count":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Count"},"confidence":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Confidence"},"observer":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Observer"},"notes":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Notes"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},"type":"object","title":"PredatorSightingUpdateRequest","description":"Partial update; every field optional. ``observer``,\n``sighting_time``, ``notes`` continue to live in\n``sighting_metadata`` JSONB — convenience fields are merged\nrather than replacing the whole blob."},"PreferencesResponse":{"properties":{"analytics_opt_in":{"type":"boolean","title":"Analytics Opt In","default":false},"sharing_interest":{"type":"boolean","title":"Sharing Interest","default":false},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"primary_species":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Primary Species"},"home_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Home State"}},"type":"object","title":"PreferencesResponse"},"PreferencesUpdate":{"properties":{"analytics_opt_in":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Analytics Opt In"},"sharing_interest":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sharing Interest"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"primary_species":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Primary Species"},"home_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Home State"}},"additionalProperties":false,"type":"object","title":"PreferencesUpdate"},"PresenceResponse":{"properties":{"online_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Online Count","description":"Users with an authenticated request inside the window. NULL — not 0 — when Redis is unreachable: a confident zero would be indistinguishable from a genuinely empty platform."},"online_user_ids":{"items":{"type":"string"},"type":"array","title":"Online User Ids","description":"Profile ids inside the window, most-recent first. These are ``profiles.id`` values, matching ``AdminUserRow.id`` on the Accounts list — NOT ``supabase_user_id``. Empty when ``available`` is false."},"online_ids_truncated":{"type":"boolean","title":"Online Ids Truncated","description":"True when the id list hit its defensive cap and is incomplete.","default":false},"window_seconds":{"type":"integer","title":"Window Seconds","description":"Rolling window that defines 'online'. 300 (5 minutes) by default."},"available":{"type":"boolean","title":"Available","description":"False when Redis could not be read; every count above is then meaningless."},"as_of":{"type":"string","format":"date-time","title":"As Of"}},"type":"object","required":["window_seconds","available","as_of"],"title":"PresenceResponse","description":"Who is online right now, per the Redis presence sorted set."},"PriceListItem":{"properties":{"tier":{"type":"string","title":"Tier"},"billing_cycle":{"type":"string","title":"Billing Cycle"},"price_id":{"type":"string","title":"Price Id"}},"type":"object","required":["tier","billing_cycle","price_id"],"title":"PriceListItem"},"PriceListResponse":{"properties":{"prices":{"items":{"$ref":"#/components/schemas/PriceListItem"},"type":"array","title":"Prices"}},"type":"object","required":["prices"],"title":"PriceListResponse"},"PrimaryPersona":{"type":"string","enum":["individual","outfitter","admin"],"title":"PrimaryPersona","description":"Which portal a user lands in after login.\n\nUX Phase 1 split: the monolith nav splits into three shells,\nchosen by this field. See wildlens-ai-docs/03-ux-restructuring-plan.md.\n\nValues:\n  * ``individual`` — personal-hunter portal (``/app``). Default for\n    new signups.\n  * ``outfitter``  — B2B portal (``/app/o``). Inferred from a row\n    in the ``outfitters`` table or a subscription tier in the\n    ``OUTFITTER_TIERS`` set; can also be set explicitly at signup.\n  * ``admin``      — platform admin panel (``/admin``). Derived\n    from ``profiles.is_admin`` at backfill; future writes keep\n    them in sync via the auth service."},"ProcessingMode":{"type":"string","enum":["realtime","batch"],"title":"ProcessingMode"},"ProductLine":{"type":"string","enum":["firstlight","rutline"],"title":"ProductLine","description":"Which ENTITLEMENT MODEL an organization resolves under (WLAI-300).\n\nThe discriminator names the *shape* of the entitlement decision, not the\nproduct a customer bought — the two opposite shapes are what one resolution\npath has to branch on (WLAI-298):\n\n  * ``firstlight`` — DENYLIST. Inherit everything by default; only the\n    explicitly non-FirstLight (outfitter/org) keys are withheld. This is\n    today's behavior for every existing organization and is therefore the\n    column default, so N-1 holds: no live org changes shape on deploy.\n  * ``rutline``    — ALLOWLIST. Nothing is granted until a System Admin\n    toggles it on per contract; anything absent from\n    ``organization_entitlements`` is off.\n\nStored as ``VARCHAR`` + a CHECK constraint rather than a Postgres ENUM,\nmatching the ``organizations.status`` precedent — extending the value set\nis then an additive migration instead of an ``ALTER TYPE`` dance."},"ProfileDedupResponse":{"properties":{"profile_exists":{"type":"boolean","title":"Profile Exists"},"profile":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Profile"},"current_org":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Current Org"}},"type":"object","required":["profile_exists"],"title":"ProfileDedupResponse"},"ProfileResponse":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bio"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"zip_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Code"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"preferred_ai_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Ai Model"},"subscription_tier":{"$ref":"#/components/schemas/SubscriptionTier"},"membership_class":{"anyOf":[{"$ref":"#/components/schemas/MembershipClass"},{"type":"null"}]},"is_admin":{"type":"boolean","title":"Is Admin","default":false},"is_system_admin":{"type":"boolean","title":"Is System Admin","default":false},"is_founder":{"type":"boolean","title":"Is Founder","default":false},"primary_persona":{"$ref":"#/components/schemas/PrimaryPersona","default":"individual"},"must_change_password":{"type":"boolean","title":"Must Change Password","default":false},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"organization_role":{"anyOf":[{"$ref":"#/components/schemas/OrganizationRole"},{"type":"null"}]},"memberships":{"items":{"$ref":"#/components/schemas/OrgMembershipSummary"},"type":"array","title":"Memberships","default":[]},"available_contexts":{"items":{"type":"string"},"type":"array","title":"Available Contexts","default":[]},"default_context":{"type":"string","title":"Default Context","default":"individual"},"active_context_org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Active Context Org Id"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions","default":[]},"ai_species_identification_opt_out":{"type":"boolean","title":"Ai Species Identification Opt Out","default":false},"ai_ecosystem_insights_opt_out":{"type":"boolean","title":"Ai Ecosystem Insights Opt Out","default":false},"ai_third_party_models_opt_out":{"type":"boolean","title":"Ai Third Party Models Opt Out","default":false},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"primary_species":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Primary Species"},"home_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Home State"},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","email","full_name","avatar_url","subscription_tier","last_seen_at","created_at"],"title":"ProfileResponse"},"ProfileUpdate":{"properties":{"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bio"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"zip_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Code"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"preferred_ai_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Ai Model"},"ai_species_identification_opt_out":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ai Species Identification Opt Out"},"ai_ecosystem_insights_opt_out":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ai Ecosystem Insights Opt Out"},"ai_third_party_models_opt_out":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ai Third Party Models Opt Out"}},"additionalProperties":false,"type":"object","title":"ProfileUpdate"},"PromoCodeCreate":{"properties":{"code":{"type":"string","title":"Code"},"discount_type":{"type":"string","enum":["percent","amount"],"title":"Discount Type"},"discount_value":{"type":"number","title":"Discount Value"},"max_redemptions":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Redemptions"},"expiration_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expiration Date"}},"type":"object","required":["code","discount_type","discount_value"],"title":"PromoCodeCreate"},"PromoCodeRow":{"properties":{"id":{"type":"string","title":"Id"},"code":{"type":"string","title":"Code"},"discount_type":{"type":"string","title":"Discount Type"},"discount_value":{"type":"number","title":"Discount Value"},"redemptions_used":{"type":"integer","title":"Redemptions Used"},"max_redemptions":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Redemptions"},"expiration":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expiration"},"status":{"type":"string","title":"Status"}},"type":"object","required":["id","code","discount_type","discount_value","redemptions_used","max_redemptions","expiration","status"],"title":"PromoCodeRow"},"PromoteModelRequest":{"properties":{"candidate_model":{"type":"string","title":"Candidate Model"},"benchmark_run_id":{"type":"string","title":"Benchmark Run Id"}},"type":"object","required":["candidate_model","benchmark_run_id"],"title":"PromoteModelRequest"},"PromoteModelResponse":{"properties":{"triggered":{"type":"boolean","title":"Triggered"},"workflow_run_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow Run Url"},"candidate_model":{"type":"string","title":"Candidate Model"}},"type":"object","required":["triggered","candidate_model"],"title":"PromoteModelResponse"},"PropertyBestWindowRow":{"properties":{"stand_id":{"type":"string","title":"Stand Id"},"stand_name":{"type":"string","title":"Stand Name"},"score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Score"},"grade":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grade"},"primary_window_start":{"anyOf":[{"type":"string","format":"time"},{"type":"null"}],"title":"Primary Window Start"},"primary_window_end":{"anyOf":[{"type":"string","format":"time"},{"type":"null"}],"title":"Primary Window End"},"cached":{"type":"boolean","title":"Cached"},"computed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Computed At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["stand_id","stand_name","cached"],"title":"PropertyBestWindowRow","description":"One stand in the property-wide list. ``score`` is ``None`` when\nno fresh cache row exists — the UI renders ``—``. NEVER triggers a\nlive compute (Phase 6 callout 1)."},"PropertyBuckActivity":{"properties":{"buck":{"$ref":"#/components/schemas/TrackedBuckResponse"},"sightings_at_property":{"type":"integer","title":"Sightings At Property"},"other_property_count":{"type":"integer","title":"Other Property Count","description":"Number of OTHER properties where this buck was also seen"},"nearest_other_distance_miles":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Nearest Other Distance Miles","description":"Distance in miles to the nearest other property sighting"}},"type":"object","required":["buck","sightings_at_property","other_property_count"],"title":"PropertyBuckActivity","description":"Buck activity at a specific property — cross-property counts without names."},"PropertyCreate":{"properties":{"name":{"type":"string","maxLength":255,"title":"Name"},"location_text":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Location Text"},"latitude":{"anyOf":[{"type":"number","maximum":90.0,"minimum":-90.0},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number","maximum":180.0,"minimum":-180.0},{"type":"null"}],"title":"Longitude"},"acreage":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Acreage"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone","default":"America/Chicago"},"state":{"anyOf":[{"type":"string","maxLength":2},{"type":"null"}],"title":"State"},"habitat_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Habitat Notes"},"county":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"County"},"region":{"anyOf":[{"type":"string","maxLength":150},{"type":"null"}],"title":"Region"},"city":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"City"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"terrain_types":{"items":{"type":"string"},"type":"array","title":"Terrain Types"},"elevation_min_ft":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Elevation Min Ft"},"elevation_max_ft":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Elevation Max Ft"},"target_species":{"items":{"type":"string"},"type":"array","title":"Target Species"},"population_estimates":{"additionalProperties":{"type":"integer"},"type":"object","title":"Population Estimates"},"landowner_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Landowner Name"},"landowner_phone":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Landowner Phone"},"landowner_email":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Landowner Email"},"landowner_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Landowner Address"},"lease_expiration":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Lease Expiration"},"lease_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lease Notes"},"land_type":{"anyOf":[{"type":"string","enum":["private","public","both"]},{"type":"null"}],"title":"Land Type"}},"additionalProperties":false,"type":"object","required":["name"],"title":"PropertyCreate"},"PropertyDashboard":{"properties":{"total_photos":{"type":"integer","title":"Total Photos"},"total_analyzed":{"type":"integer","title":"Total Analyzed"},"total_species":{"type":"integer","title":"Total Species"},"total_cameras":{"type":"integer","title":"Total Cameras"},"total_animals":{"type":"integer","title":"Total Animals"},"latest_activity":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latest Activity"}},"type":"object","required":["total_photos","total_analyzed","total_species","total_cameras","total_animals","latest_activity"],"title":"PropertyDashboard"},"PropertyInviteCreate":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"PropertyInviteCreate"},"PropertyInviteCreateResponse":{"properties":{"invite_id":{"type":"string","title":"Invite Id"},"email":{"type":"string","title":"Email"},"property_id":{"type":"string","title":"Property Id"},"property_name":{"type":"string","title":"Property Name"},"status":{"type":"string","title":"Status"},"invite_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invite Url"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"claimed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Claimed At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"notification_sent":{"type":"boolean","title":"Notification Sent","default":false},"notification_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notification Status"},"notification_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notification Error"}},"type":"object","required":["invite_id","email","property_id","property_name","status","created_at","expires_at"],"title":"PropertyInviteCreateResponse","description":"The CREATE result: the invite row, plus the notification outcome.\n\nWLAI-268. A subclass rather than three fields on ``PropertyInviteResponse``\nbecause that base shape is also what the LIST and REVOKE routes return, and\na notification status means nothing on either — listing invites sends no\nmail. Only the create route mints and notifies, so only the create route\ncarries the fields. (The org-invite schema took the fields directly for the\nmirror-image reason: it has no non-create constructor.)\n\nField semantics match ``MemberInviteResponse`` exactly so one frontend\nhelper reads every invite surface. This route always attempts a send once\nthe token exists, so ``notification_status`` is never null here; the\nnullable type is carried for shape-compatibility with the property-member\nsurface, which has a genuine no-send-attempted path.\n\n``invite_url`` is on the success body already, so the out-of-band manual\ndelivery the old 502 envelope existed to preserve is unaffected."},"PropertyInviteResponse":{"properties":{"invite_id":{"type":"string","title":"Invite Id"},"email":{"type":"string","title":"Email"},"property_id":{"type":"string","title":"Property Id"},"property_name":{"type":"string","title":"Property Name"},"status":{"type":"string","title":"Status"},"invite_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invite Url"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"claimed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Claimed At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"}},"type":"object","required":["invite_id","email","property_id","property_name","status","created_at","expires_at"],"title":"PropertyInviteResponse","description":"One invite row. ``status`` is a derived label:\n- ``active``  — claimed\n- ``pending`` — unclaimed, not revoked, not expired\n- ``expired`` — past expires_at\n- ``revoked`` — revoked_at set"},"PropertyMovementDirection":{"properties":{"property_id":{"type":"string","title":"Property Id"},"window_days":{"type":"integer","title":"Window Days"},"species":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species"},"total_detections":{"type":"integer","title":"Total Detections"},"camera_count":{"type":"integer","title":"Camera Count"},"mode":{"type":"string","title":"Mode"},"dominant_bearing":{"anyOf":[{"$ref":"#/components/schemas/CameraHeading"},{"type":"null"}]},"concentration":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Concentration"},"octant_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Octant Counts"}},"type":"object","required":["property_id","window_days","total_detections","camera_count","mode","octant_counts"],"title":"PropertyMovementDirection"},"PropertyOverlayCreate":{"properties":{"geojson":{"additionalProperties":true,"type":"object","title":"Geojson"},"overlay_type":{"$ref":"#/components/schemas/OverlayType"},"name":{"type":"string","maxLength":255,"title":"Name"},"subtype":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Subtype"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["geojson","overlay_type","name"],"title":"PropertyOverlayCreate"},"PropertyOverlayResponse":{"properties":{"id":{"type":"string","title":"Id"},"property_id":{"type":"string","title":"Property Id"},"overlay_type":{"$ref":"#/components/schemas/OverlayType"},"name":{"type":"string","title":"Name"},"geojson":{"additionalProperties":true,"type":"object","title":"Geojson"},"subtype":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtype"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_by_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","property_id","overlay_type","name","geojson","created_at","updated_at"],"title":"PropertyOverlayResponse"},"PropertyOverlayUpdate":{"properties":{"overlay_type":{"anyOf":[{"$ref":"#/components/schemas/OverlayType"},{"type":"null"}]},"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Name"},"geojson":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Geojson"},"subtype":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Subtype"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"PropertyOverlayUpdate","description":"Partial-update variant. ``geojson`` validated only when present."},"PropertyPerformanceFilters":{"properties":{"date_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date From"},"date_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date To"}},"type":"object","title":"PropertyPerformanceFilters"},"PropertyPerformanceReport":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"filters":{"$ref":"#/components/schemas/PropertyPerformanceFilters"},"rows":{"items":{"$ref":"#/components/schemas/PropertyPerformanceRow"},"type":"array","title":"Rows"}},"type":"object","required":["organization_id","generated_at","filters","rows"],"title":"PropertyPerformanceReport"},"PropertyPerformanceRow":{"properties":{"property_id":{"type":"string","title":"Property Id"},"property_name":{"type":"string","title":"Property Name"},"hunt_count":{"type":"integer","title":"Hunt Count","default":0},"session_count":{"type":"integer","title":"Session Count","default":0},"completed_sessions":{"type":"integer","title":"Completed Sessions","default":0},"harvest_sessions":{"type":"integer","title":"Harvest Sessions","default":0},"harvest_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Harvest Rate"},"total_harvests":{"type":"integer","title":"Total Harvests","default":0},"distinct_hunters":{"type":"integer","title":"Distinct Hunters","default":0},"distinct_species_seen":{"type":"integer","title":"Distinct Species Seen","default":0}},"type":"object","required":["property_id","property_name"],"title":"PropertyPerformanceRow"},"PropertyResponse":{"properties":{"id":{"type":"string","title":"Id"},"owner_id":{"type":"string","title":"Owner Id"},"name":{"type":"string","title":"Name"},"location_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Text"},"latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Longitude"},"acreage":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Acreage"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"habitat_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Habitat Notes"},"county":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"County"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"terrain_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Terrain Types"},"elevation_min_ft":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Elevation Min Ft"},"elevation_max_ft":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Elevation Max Ft"},"target_species":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Target Species"},"population_estimates":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Population Estimates"},"landowner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Landowner Name"},"landowner_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Landowner Phone"},"landowner_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Landowner Email"},"landowner_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Landowner Address"},"lease_expiration":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Lease Expiration"},"lease_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lease Notes"},"land_type":{"anyOf":[{"type":"string","enum":["private","public","both"]},{"type":"null"}],"title":"Land Type"},"setup_complete":{"type":"boolean","title":"Setup Complete","default":false},"deactivated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deactivated At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"camera_count":{"type":"integer","title":"Camera Count","default":0},"photo_count":{"type":"integer","title":"Photo Count","default":0},"stand_count":{"type":"integer","title":"Stand Count","default":0}},"type":"object","required":["id","owner_id","name","location_text","latitude","longitude","acreage","timezone","state","habitat_notes","created_at","updated_at"],"title":"PropertyResponse"},"PropertyRole":{"type":"string","enum":["owner","editor","viewer"],"title":"PropertyRole"},"PropertyRulesResponse":{"properties":{"auto_delete_empty_frames":{"type":"boolean","title":"Auto Delete Empty Frames","default":false},"auto_tag_species":{"type":"boolean","title":"Auto Tag Species","default":true},"alert_on_predator":{"type":"boolean","title":"Alert On Predator","default":true},"deer_only_gallery":{"type":"boolean","title":"Deer Only Gallery","default":false}},"type":"object","title":"PropertyRulesResponse"},"PropertyRulesUpdate":{"properties":{"auto_delete_empty_frames":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Delete Empty Frames"},"auto_tag_species":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Tag Species"},"alert_on_predator":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Alert On Predator"},"deer_only_gallery":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Deer Only Gallery"}},"type":"object","title":"PropertyRulesUpdate"},"PropertySlotCheckoutRequest":{"properties":{"success_url":{"type":"string","title":"Success Url"},"cancel_url":{"type":"string","title":"Cancel Url"}},"type":"object","required":["success_url","cancel_url"],"title":"PropertySlotCheckoutRequest"},"PropertySlotCheckoutResponse":{"properties":{"checkout_url":{"type":"string","title":"Checkout Url"}},"type":"object","required":["checkout_url"],"title":"PropertySlotCheckoutResponse"},"PropertySummaryResponse":{"properties":{"property_id":{"type":"string","title":"Property Id"},"photos_this_period":{"type":"integer","title":"Photos This Period"},"total_photos":{"type":"integer","title":"Total Photos"},"analyzed_photos":{"type":"integer","title":"Analyzed Photos"},"unique_individuals":{"type":"integer","title":"Unique Individuals"},"top_buck_score":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Top Buck Score"},"cameras_total":{"type":"integer","title":"Cameras Total"},"cameras_healthy":{"type":"integer","title":"Cameras Healthy"},"cameras_stale":{"type":"integer","title":"Cameras Stale"},"photos_in_flight":{"type":"integer","title":"Photos In Flight"},"active_upload_batches":{"type":"integer","title":"Active Upload Batches"},"latest_activity":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latest Activity"},"period_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Period From"},"period_to":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Period To"}},"type":"object","required":["property_id","photos_this_period","total_photos","analyzed_photos","unique_individuals","top_buck_score","cameras_total","cameras_healthy","cameras_stale","photos_in_flight","active_upload_batches","latest_activity","period_from","period_to"],"title":"PropertySummaryResponse"},"PropertyUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Name"},"location_text":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Location Text"},"latitude":{"anyOf":[{"type":"number","maximum":90.0,"minimum":-90.0},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number","maximum":180.0,"minimum":-180.0},{"type":"null"}],"title":"Longitude"},"acreage":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Acreage"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"state":{"anyOf":[{"type":"string","maxLength":2},{"type":"null"}],"title":"State"},"habitat_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Habitat Notes"},"county":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"County"},"region":{"anyOf":[{"type":"string","maxLength":150},{"type":"null"}],"title":"Region"},"city":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"City"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"terrain_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Terrain Types"},"elevation_min_ft":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Elevation Min Ft"},"elevation_max_ft":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Elevation Max Ft"},"target_species":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Target Species"},"population_estimates":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Population Estimates"},"landowner_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Landowner Name"},"landowner_phone":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Landowner Phone"},"landowner_email":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Landowner Email"},"landowner_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Landowner Address"},"lease_expiration":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Lease Expiration"},"lease_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lease Notes"},"land_type":{"anyOf":[{"type":"string","enum":["private","public","both"]},{"type":"null"}],"title":"Land Type"}},"additionalProperties":false,"type":"object","title":"PropertyUpdate"},"PublicAccuracyStats":{"properties":{"accuracy_pct":{"type":"number","title":"Accuracy Pct"},"species_count":{"type":"integer","title":"Species Count"},"dataset_size":{"type":"integer","title":"Dataset Size"},"model_version":{"type":"string","title":"Model Version"},"benchmark_date":{"type":"string","title":"Benchmark Date"}},"type":"object","required":["accuracy_pct","species_count","dataset_size","model_version","benchmark_date"],"title":"PublicAccuracyStats"},"PublicSessionView":{"properties":{"session_date":{"type":"string","format":"date","title":"Session Date"},"time_of_day":{"$ref":"#/components/schemas/SessionTimeOfDay"},"status":{"$ref":"#/components/schemas/SessionStatus"},"hunter_first_name":{"type":"string","title":"Hunter First Name"},"property_name":{"type":"string","title":"Property Name"},"stand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stand Name"},"guide_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guide Name"},"is_frozen":{"type":"boolean","title":"Is Frozen","default":false},"briefing":{"anyOf":[{"$ref":"#/components/schemas/BriefingResponse"},{"type":"null"}]},"outfitter_logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outfitter Logo Url"},"outfitter_brand_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outfitter Brand Color"}},"type":"object","required":["session_date","time_of_day","status","hunter_first_name","property_name"],"title":"PublicSessionView","description":"Curated payload for the public ``GET /b/{qr_token}`` endpoint.\n\nDeliberately omits internal IDs (organization_id, hunter_id, etc.)\nso a leaked URL doesn't expose tenant structure.\n\n``is_frozen`` flips ``True`` once the session's ``qr_expires_at``\nhas passed (Phase 1 / Conflict 2 ruling). The snapshot stays\nvisible after freeze; the UI uses this flag to render a \"Session\nClosed\" banner without losing the briefing payload.\n\nBRANDING IS AN ALLOWLIST OF EXACTLY TWO FIELDS (WLAI-311,\nConflict 8 ruling): a presigned ``outfitter_logo_url`` and one\n``#rrggbb`` ``outfitter_brand_color``. Nothing else about the\norganization may be added here — not its name, id, slug, domain,\nor plan. This endpoint is UNAUTHENTICATED and reachable by anyone\nholding the token, which is why it already omits internal ids;\nbranding does not buy an exemption from that. Both stay ``None``\nunless the org holds ``white_label_hunter_exports``, so an\nunentitled org leaks nothing, not even the presence of a logo."},"PublicShareView":{"properties":{"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"species":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species"},"all_species":{"items":{"type":"string"},"type":"array","title":"All Species"},"behaviors":{"items":{"type":"string"},"type":"array","title":"Behaviors"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"subjects":{"items":{"$ref":"#/components/schemas/PublicSubject"},"type":"array","title":"Subjects"},"antler_estimate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Antler Estimate"},"captured_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Captured At"},"weather":{"anyOf":[{"$ref":"#/components/schemas/PublicWeather"},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"county":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"County"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"page_title":{"type":"string","title":"Page Title"},"shared_by_first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shared By First Name"},"brand":{"type":"string","title":"Brand","default":"WildLens AI"}},"type":"object","required":["page_title"],"title":"PublicShareView","description":"The complete public payload for ``GET /share/{token}``. Fuller-by-design\n(captured time + weather included) per the marketing-over-caution ruling,\nbut coarse geo is city/county/state ONLY — never a precise coordinate."},"PublicSubject":{"properties":{"species":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species"},"sex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sex"},"age_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Age Class"},"antler_points":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Antler Points"},"antler_score_estimate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Antler Score Estimate"},"body_condition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Condition"},"orientation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Orientation"},"bbox":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Bbox"}},"type":"object","title":"PublicSubject","description":"One detected individual, sanitized. ``bbox`` is relative to the image\n(0–1), never geographic — safe to expose."},"PublicWeather":{"properties":{"conditions_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conditions Text"},"temp_f":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temp F"},"wind_dir":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wind Dir"},"wind_mph":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Wind Mph"},"pressure_inhg":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pressure Inhg"},"pressure_trend":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pressure Trend"},"moon_phase":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Moon Phase"}},"type":"object","title":"PublicWeather","description":"Weather-at-capture, sanitized. Image-based ``conditions_text`` plus any\nstructured fields present. NONE of these are geo-locating (no coordinates,\nno station id). ``reason``/location flags from the authed schema are\nintentionally dropped."},"QRCodeResponse":{"properties":{"qr_token":{"type":"string","title":"Qr Token"},"qr_url":{"type":"string","title":"Qr Url"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"session_summary":{"additionalProperties":true,"type":"object","title":"Session Summary"},"white_label_enabled":{"type":"boolean","title":"White Label Enabled","default":false},"outfitter_logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outfitter Logo Url"},"outfitter_brand_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outfitter Brand Color"}},"type":"object","required":["qr_token","qr_url","session_summary"],"title":"QRCodeResponse","description":"Returned by GET /api/v1/sessions/{id}/qr.\n\nThe three branding fields let the frontend Hunt Card PDF renderer\npick its header chrome in one round trip.\n\n``white_label_enabled`` is the EFFECTIVE answer (WLAI-311), not the\nraw toggle: the Outfitter Manager's ``qr_white_label_enabled`` AND\nthe ``white_label_hunter_exports`` entitlement AND some branding\nactually stored. A renderer that branches on this cannot brand a\ncard the org is not entitled to, which the raw toggle permitted\nfor any org whose grant was revoked after it was switched on.\n\n``outfitter_logo_url`` is a presigned URL and expires; treat it as\nper-response, not cacheable. ``outfitter_brand_color`` is a\n``#rrggbb`` string that may tint card chrome ONLY — the Properties\n& Stands map overlay language (boundary purple, corridor green,\nbedding teal, food-source amber) is never brand-tinted, per\nWLAI-307. The \"Powered by WildLens AI\" mark and the wordmark at\nthe QR center are unconditional (WLAI-312, QR-002)."},"Rationale":{"properties":{"pattern_factors":{"items":{"type":"string"},"type":"array","title":"Pattern Factors","default":[]},"weather_factors":{"items":{"type":"string"},"type":"array","title":"Weather Factors","default":[]},"species_behavior_factors":{"items":{"type":"string"},"type":"array","title":"Species Behavior Factors","default":[]}},"type":"object","title":"Rationale"},"ReanalyzeRequest":{"properties":{"species_hint":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Species Hint","description":"Species to guide re-analysis (e.g. 'mule_deer'). Claude will be told this species was confirmed by the user."},"notes":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Notes","description":"Additional context for re-analysis (e.g. 'focus on antler scoring')."}},"type":"object","title":"ReanalyzeRequest","description":"Request to re-run AI analysis on a photo, optionally with a species hint.\n\nP2-52: When a user knows what species is in the photo but wants Claude\nto re-analyze with that knowledge (e.g. to get antler score, behavior,\nbody condition for a species Claude originally misidentified)."},"RecentSyncRow":{"properties":{"portal_id":{"type":"string","title":"Portal Id"},"provider":{"type":"string","title":"Provider"},"sync_status":{"type":"string","title":"Sync Status"},"last_synced_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Synced At"},"sync_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sync Error"}},"type":"object","required":["portal_id","provider","sync_status","last_synced_at","sync_error"],"title":"RecentSyncRow"},"RecommendRequestBody":{"properties":{"property_id":{"type":"string","title":"Property Id"},"species_taxon_id":{"type":"string","title":"Species Taxon Id"},"hunt_date":{"type":"string","format":"date","title":"Hunt Date"},"top_n":{"type":"integer","maximum":20.0,"minimum":1.0,"title":"Top N","default":5}},"type":"object","required":["property_id","species_taxon_id","hunt_date"],"title":"RecommendRequestBody"},"RecomputeResponse":{"properties":{"pattern_id":{"type":"string","title":"Pattern Id"},"sample_size":{"type":"integer","title":"Sample Size"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"computed_at":{"type":"string","format":"date-time","title":"Computed At"}},"type":"object","required":["pattern_id","sample_size","confidence","computed_at"],"title":"RecomputeResponse"},"RecordReviewRequest":{"properties":{"was_corrected":{"type":"boolean","title":"Was Corrected","description":"Whether the user corrected the species (True) or confirmed it was correct (False)"}},"type":"object","required":["was_corrected"],"title":"RecordReviewRequest"},"RefusedRow":{"properties":{"photo_id":{"type":"string","title":"Photo Id"},"reason":{"type":"string","title":"Reason"},"detail":{"type":"string","title":"Detail"}},"type":"object","required":["photo_id","reason","detail"],"title":"RefusedRow"},"RegisterCompleteRequest":{"properties":{"client_data":{"type":"string","title":"Client Data"},"attestation_object":{"type":"string","title":"Attestation Object"},"device_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Name"}},"type":"object","required":["client_data","attestation_object"],"title":"RegisterCompleteRequest"},"RegistryStatsResponse":{"properties":{"total_species":{"type":"integer","title":"Total Species"},"species_with_images":{"type":"integer","title":"Species With Images"},"species_with_conservation_status":{"type":"integer","title":"Species With Conservation Status"},"total_images":{"type":"integer","title":"Total Images"}},"type":"object","required":["total_species","species_with_images","species_with_conservation_status","total_images"],"title":"RegistryStatsResponse","description":"Species registry statistics."},"RemoveMemberResponse":{"properties":{"removed":{"type":"boolean","title":"Removed"},"seats_used":{"type":"integer","title":"Seats Used"}},"type":"object","required":["removed","seats_used"],"title":"RemoveMemberResponse"},"ReportBranding":{"properties":{"logo_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Logo Url"},"primary_color":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Primary Color","description":"CSS hex or rgba() string used for brand accents in the PDF."},"secondary_color":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Secondary Color"},"accent_color":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Accent Color"},"outfitter_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Outfitter Name"}},"type":"object","title":"ReportBranding"},"ReportCreateRequest":{"properties":{"property_id":{"type":"string","title":"Property Id"},"report_type":{"$ref":"#/components/schemas/ReportType","default":"property_summary"},"title":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Title"},"date_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date From"},"date_to":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date To"},"branding":{"anyOf":[{"$ref":"#/components/schemas/ReportBranding"},{"type":"null"}]},"recipient_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Recipient Name"},"recipient_email":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Recipient Email"}},"type":"object","required":["property_id"],"title":"ReportCreateRequest"},"ReportCreateResponse":{"properties":{"report_id":{"type":"string","title":"Report Id"},"status":{"$ref":"#/components/schemas/ReportStatus"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["report_id","status","created_at"],"title":"ReportCreateResponse"},"ReportFrequency":{"type":"string","enum":["daily","weekly","monthly"],"title":"ReportFrequency"},"ReportListEntry":{"properties":{"id":{"type":"string","title":"Id"},"profile_id":{"type":"string","title":"Profile Id"},"property_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Id"},"report_type":{"$ref":"#/components/schemas/ReportType"},"status":{"$ref":"#/components/schemas/ReportStatus"},"title":{"type":"string","title":"Title"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"generated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Generated At"},"page_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page Count"},"file_size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"File Size Bytes"},"recipient_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recipient Name"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"},"property_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Name"},"date_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date From"},"date_to":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date To"}},"type":"object","required":["id","profile_id","property_id","report_type","status","title","created_at","generated_at","page_count","file_size_bytes","recipient_name","error_message"],"title":"ReportListEntry"},"ReportListResponse":{"properties":{"reports":{"items":{"$ref":"#/components/schemas/ReportListEntry"},"type":"array","title":"Reports"}},"type":"object","required":["reports"],"title":"ReportListResponse"},"ReportStatus":{"type":"string","enum":["pending","generating","completed","failed"],"title":"ReportStatus"},"ReportType":{"type":"string","enum":["property_summary","species_activity","camera_performance","movement_corridors","client_recap","weekend_briefing"],"title":"ReportType","description":"White-label PDF report variants."},"RequestIntegrationBody":{"properties":{"auth_type":{"type":"string","title":"Auth Type","default":"manual_upload"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"}},"type":"object","title":"RequestIntegrationBody"},"RequeueResponse":{"properties":{"requeued":{"type":"integer","title":"Requeued"},"requeued_ids":{"items":{"type":"string"},"type":"array","title":"Requeued Ids"},"refused":{"items":{"$ref":"#/components/schemas/RefusedRow"},"type":"array","title":"Refused","description":"Rows deliberately NOT dispatched — currently only 'missing_object'. Re-running analysis against an absent object just fails again and returns the row to this list."},"skipped_ids":{"items":{"type":"string"},"type":"array","title":"Skipped Ids"}},"type":"object","required":["requeued","requeued_ids"],"title":"RequeueResponse"},"ResolvedEntitlementItem":{"properties":{"kind":{"anyOf":[{"$ref":"#/components/schemas/GateKind"},{"type":"null"}]},"value":{"anyOf":[{"type":"integer"},{"type":"boolean"}],"title":"Value"},"unlimited":{"type":"boolean","title":"Unlimited"},"source":{"type":"string","title":"Source"}},"type":"object","required":["kind","value","unlimited","source"],"title":"ResolvedEntitlementItem","description":"One key in the admin ``resolved_entitlement`` map."},"RetryResponse":{"properties":{"photo_id":{"type":"string","title":"Photo Id"},"status":{"type":"string","title":"Status"},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Id"}},"type":"object","required":["photo_id","status"],"title":"RetryResponse"},"RevenueSummary":{"properties":{"billing_type":{"type":"string","title":"Billing Type"},"tier":{"type":"string","title":"Tier"},"active_count":{"type":"integer","title":"Active Count"},"revenue":{"type":"number","title":"Revenue"}},"type":"object","required":["billing_type","tier","active_count","revenue"],"title":"RevenueSummary"},"RouterSummary":{"properties":{"tag":{"type":"string","title":"Tag"},"path_count":{"type":"integer","minimum":0.0,"title":"Path Count"},"method_breakdown":{"additionalProperties":{"type":"integer"},"type":"object","title":"Method Breakdown","description":"GET/POST/PATCH/DELETE/PUT counts."}},"type":"object","required":["tag","path_count"],"title":"RouterSummary","description":"One registered FastAPI router rolled up by tag."},"RunStatus":{"type":"string","enum":["queued","running","success","failed","partial_failure"],"title":"RunStatus"},"SchedulerRunResponse":{"properties":{"ran_at":{"type":"string","format":"date-time","title":"Ran At"},"evaluated_profiles":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Evaluated Profiles"},"skipped_profiles":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Skipped Profiles"},"new_alerts_count":{"type":"integer","title":"New Alerts Count"}},"type":"object","required":["ran_at","evaluated_profiles","skipped_profiles","new_alerts_count"],"title":"SchedulerRunResponse"},"SchedulerStateResponse":{"properties":{"profile_id":{"type":"string","title":"Profile Id"},"cadence_minutes":{"type":"integer","title":"Cadence Minutes"},"last_evaluated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Evaluated At"},"next_evaluation_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Evaluation At"}},"type":"object","required":["profile_id","cadence_minutes","last_evaluated_at","next_evaluation_at"],"title":"SchedulerStateResponse"},"SchedulerUpdateRequest":{"properties":{"cadence_minutes":{"type":"integer","maximum":1440.0,"minimum":1.0,"title":"Cadence Minutes"}},"type":"object","required":["cadence_minutes"],"title":"SchedulerUpdateRequest"},"SeasonPassExpiringRow":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"subscription_tier":{"type":"string","title":"Subscription Tier"},"billing_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Type"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"current_period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Current Period End"},"expired_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expired At"},"data_retention_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Data Retention Until"},"cancel_at_period_end":{"type":"boolean","title":"Cancel At Period End","default":false},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"organization_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Name"},"days_until_expiration":{"type":"integer","title":"Days Until Expiration"}},"type":"object","required":["id","email","full_name","subscription_tier","billing_type","status","current_period_end","expired_at","data_retention_until","last_seen_at","created_at","days_until_expiration"],"title":"SeasonPassExpiringRow"},"SessionHarvestCreate":{"properties":{"species":{"type":"string","maxLength":100,"title":"Species"},"harvest_datetime":{"type":"string","format":"date-time","title":"Harvest Datetime"},"method_of_take":{"anyOf":[{"$ref":"#/components/schemas/MethodOfTake"},{"type":"null"}]},"shot_distance_yards":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Shot Distance Yards"},"antler_points":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Antler Points"},"antler_score":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string"},{"type":"null"}],"title":"Antler Score"},"weight_lbs":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string"},{"type":"null"}],"title":"Weight Lbs"},"photo_urls":{"items":{"type":"string"},"type":"array","title":"Photo Urls"},"harvest_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Harvest Notes"}},"type":"object","required":["species","harvest_datetime"],"title":"SessionHarvestCreate"},"SessionHarvestResponse":{"properties":{"harvest":{"$ref":"#/components/schemas/HarvestRecordResponse"},"session_id":{"type":"string","title":"Session Id"},"session_status":{"type":"string","title":"Session Status"},"session_outcome":{"type":"string","title":"Session Outcome"},"session_harvest_record_id":{"type":"string","title":"Session Harvest Record Id"}},"type":"object","required":["harvest","session_id","session_status","session_outcome","session_harvest_record_id"],"title":"SessionHarvestResponse","description":"Envelope returned by the POST endpoint.\n\nCarries the freshly-created harvest record plus the post-update\nsession shape (status flipped to ``completed``, outcome flipped\nto ``harvest``, ``harvest_record_id`` populated). The frontend\nuses both: the record drives the \"Outcome logged\" toast, and\nthe session lets it re-render Today's Assignment without an\nextra GET round trip."},"SessionOutcome":{"type":"string","enum":["harvest","no_harvest","cancelled","no_show"],"title":"SessionOutcome","description":"Terminal outcome for a `hunt_sessions` row. Extends\n``AssignmentOutcome`` with ``no_show`` so the outcome can record\na hunter-side failure separately from a guide-side cancellation."},"SessionStatus":{"type":"string","enum":["scheduled","active","completed","cancelled","no_show"],"title":"SessionStatus","description":"Lifecycle of a `hunt_sessions` row. ``scheduled`` is the default\non insert; ``active`` flips when the session opens; ``completed``\nor one of the terminal states closes it out."},"SessionTimeOfDay":{"type":"string","enum":["morning","evening"],"title":"SessionTimeOfDay","description":"Binary scheduling slot for a `hunt_sessions` row. Outfitter\noperations split a hunting day into one morning and one evening\nsit — that's the cardinality the spec enforces via the\n``(hunt_id, session_date, time_of_day)`` unique constraint."},"Sex":{"type":"string","enum":["male","female","unknown"],"title":"Sex"},"SexRatio":{"properties":{"male":{"type":"integer","title":"Male"},"female":{"type":"integer","title":"Female"},"unknown":{"type":"integer","title":"Unknown"}},"type":"object","required":["male","female","unknown"],"title":"SexRatio"},"ShareCreateRequest":{"properties":{"recipient_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Recipient Email"},"message":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Message"}},"type":"object","title":"ShareCreateRequest"},"ShareCreateResponse":{"properties":{"token":{"type":"string","title":"Token"},"url":{"type":"string","title":"Url"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["token","url","expires_at"],"title":"ShareCreateResponse"},"ShareLinkResponse":{"properties":{"token":{"type":"string","title":"Token"},"url":{"type":"string","title":"Url"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"revoked":{"type":"boolean","title":"Revoked"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"view_count":{"type":"integer","title":"View Count"},"last_viewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Viewed At"},"active":{"type":"boolean","title":"Active"}},"type":"object","required":["token","url","created_at","expires_at","revoked","view_count","active"],"title":"ShareLinkResponse","description":"Owner-facing view of a link (list/manage). No photo internals — just the\nlink's own lifecycle state."},"SightingLink":{"properties":{"analysis_id":{"type":"string","title":"Analysis Id"},"confidence":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Confidence"}},"type":"object","required":["analysis_id","confidence"],"title":"SightingLink"},"SightingsFilters":{"properties":{"date_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date From"},"date_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date To"},"property_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Id"},"species":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species"}},"type":"object","title":"SightingsFilters"},"SightingsReport":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"filters":{"$ref":"#/components/schemas/SightingsFilters"},"rows":{"items":{"$ref":"#/components/schemas/SightingsRow"},"type":"array","title":"Rows"},"total_sightings":{"type":"integer","title":"Total Sightings"},"distinct_species":{"type":"integer","title":"Distinct Species"}},"type":"object","required":["organization_id","generated_at","filters","rows","total_sightings","distinct_species"],"title":"SightingsReport"},"SightingsRow":{"properties":{"property_id":{"type":"string","title":"Property Id"},"property_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Name"},"species":{"type":"string","title":"Species"},"sighting_count":{"type":"integer","title":"Sighting Count"},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At"}},"type":"object","required":["property_id","species","sighting_count"],"title":"SightingsRow"},"SimulateBody":{"properties":{"event_type":{"type":"string","title":"Event Type"},"camera_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Id"}},"type":"object","required":["event_type"],"title":"SimulateBody"},"SloMetric":{"properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"status":{"type":"string","title":"Status"},"sparkline":{"items":{"type":"number"},"type":"array","title":"Sparkline"},"threshold":{"$ref":"#/components/schemas/SloThreshold"}},"type":"object","required":["value","status","threshold"],"title":"SloMetric","description":"One SLO card: current value, status vs thresholds, sparkline."},"SloThreshold":{"properties":{"warn":{"type":"number","title":"Warn"},"crit":{"type":"number","title":"Crit"},"unit":{"type":"string","title":"Unit"}},"type":"object","required":["warn","crit","unit"],"title":"SloThreshold","description":"Raw warn/crit values + unit, lifted from the metric's\n``alert_thresholds`` row for the inline threshold editor."},"SpeciesAccuracyBar":{"properties":{"species":{"type":"string","title":"Species"},"accuracy_pct":{"type":"number","maximum":100.0,"minimum":0.0,"title":"Accuracy Pct"},"sample_count":{"type":"integer","minimum":0.0,"title":"Sample Count"}},"type":"object","required":["species","accuracy_pct","sample_count"],"title":"SpeciesAccuracyBar","description":"One per-species accuracy slice from the latest benchmark run."},"SpeciesBreakdownEntry":{"properties":{"species":{"type":"string","title":"Species"},"count":{"type":"integer","title":"Count"},"percentage":{"type":"number","title":"Percentage"}},"type":"object","required":["species","count","percentage"],"title":"SpeciesBreakdownEntry"},"SpeciesBreakdownResponse":{"properties":{"property_id":{"type":"string","title":"Property Id"},"entries":{"items":{"$ref":"#/components/schemas/SpeciesBreakdownEntry"},"type":"array","title":"Entries"},"total_sightings":{"type":"integer","title":"Total Sightings"}},"type":"object","required":["property_id","entries","total_sightings"],"title":"SpeciesBreakdownResponse"},"SpeciesBreakdownRow":{"properties":{"species":{"type":"string","title":"Species"},"count":{"type":"integer","title":"Count"},"percentage":{"type":"number","title":"Percentage"}},"type":"object","required":["species","count","percentage"],"title":"SpeciesBreakdownRow"},"SpeciesCorrectionRequest":{"properties":{"corrected_species":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Corrected Species"},"corrections":{"anyOf":[{"items":{"$ref":"#/components/schemas/SubjectAttributeCorrection"},"type":"array"},{"type":"null"}],"title":"Corrections"},"notes":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Notes"}},"type":"object","title":"SpeciesCorrectionRequest","description":"User correction for a photo's analysis (FR7). One submit target.\n\nCarries an OPTIONAL species correction (analysis-level — updates\n``corrected_species`` and feeds ``species_correction_memory``, FR5) and/or an\nOPTIONAL list of per-subject attribute corrections (appended to\n``analysis_corrections``). At least one must be present. The updated detail\nenvelope is returned so the modal renders without a second round-trip."},"SpeciesDetectionBlock":{"properties":{"window_days":{"type":"integer","title":"Window Days","default":7},"total_analyses":{"type":"integer","minimum":0.0,"title":"Total Analyses"},"top_species":{"items":{"$ref":"#/components/schemas/SpeciesDetectionRow"},"type":"array","title":"Top Species"}},"type":"object","required":["total_analyses"],"title":"SpeciesDetectionBlock","description":"Top-N species detection breakdown over the last 7 days.\n\n``window_days`` is fixed at 7 today; the field exists so a future\nexpansion to a query-param window doesn't break the wire shape."},"SpeciesDetectionRow":{"properties":{"species":{"type":"string","title":"Species"},"detection_count":{"type":"integer","minimum":0.0,"title":"Detection Count"},"avg_confidence_pct":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Avg Confidence Pct"}},"type":"object","required":["species","detection_count"],"title":"SpeciesDetectionRow","description":"One species' detection count + average confidence over the\n7-day window. ``avg_confidence_pct`` is ``None`` when every\nanalysis in the bucket has a null confidence score."},"SpeciesImageResponse":{"properties":{"id":{"type":"string","title":"Id"},"source":{"type":"string","title":"Source"},"image_url":{"type":"string","title":"Image Url"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"attribution":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attribution"},"license":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"License"},"quality_grade":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quality Grade"},"has_bounding_box":{"type":"boolean","title":"Has Bounding Box","default":false},"latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Longitude"},"observed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Observed At"}},"type":"object","required":["id","source","image_url"],"title":"SpeciesImageResponse","description":"Species image reference."},"SpeciesOptionResponse":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["key","label","count"],"title":"SpeciesOptionResponse","description":"One entry in the gallery's species filter dropdown.\n\n``key`` is the value to send as ``?species=``; ``label`` is the display name\nfrom the ``taxa`` ontology. ``count`` is what selecting it returns — the\nfilter expands a canonical key to its alias spellings and treats\n``no_animal`` as a sentinel covering speciesless frames, so an option can\nnever yield an empty grid."},"SpeciesResponse":{"properties":{"id":{"type":"string","title":"Id"},"scientific_name":{"type":"string","title":"Scientific Name"},"common_name":{"type":"string","title":"Common Name"},"wildlens_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wildlens Key"},"kingdom":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kingdom"},"phylum":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phylum"},"class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Class"},"order":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order"},"family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family"},"genus":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Genus"},"conservation_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conservation Status"},"ecos_listing_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ecos Listing Status"},"is_invasive":{"type":"boolean","title":"Is Invasive","default":false},"is_native":{"type":"boolean","title":"Is Native","default":true},"habitat_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Habitat Description"},"habitat_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Habitat Types"},"us_states":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Us States"},"range_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Range Description"},"behavior_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Behavior Notes"},"diet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Diet"},"activity_pattern":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Activity Pattern"},"synonyms":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Synonyms"},"common_name_variants":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Common Name Variants"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"training_image_count":{"type":"integer","title":"Training Image Count","default":0},"gbif_species_key":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gbif Species Key"},"inaturalist_taxon_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Inaturalist Taxon Id"},"primary_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Source"},"last_enriched_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Enriched At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","scientific_name","common_name","created_at","updated_at"],"title":"SpeciesResponse","description":"Public species record."},"SpeciesSummary":{"properties":{"species":{"type":"string","title":"Species"},"count":{"type":"integer","title":"Count"},"percentage":{"type":"number","title":"Percentage"}},"type":"object","required":["species","count","percentage"],"title":"SpeciesSummary"},"StandAccessDifficulty":{"type":"string","enum":["easy","moderate","hard"],"title":"StandAccessDifficulty","description":"How hard it is to reach the stand quietly. A small penalty is\napplied to ``hard`` stands since a noisy approach blows the setup\nbefore first light."},"StandAssignmentResponse":{"properties":{"id":{"type":"string","title":"Id"},"client_id":{"type":"string","title":"Client Id"},"stand_id":{"type":"string","title":"Stand Id"},"stand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stand Name"},"access_window":{"additionalProperties":true,"type":"object","title":"Access Window"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","client_id","stand_id","access_window","created_at"],"title":"StandAssignmentResponse"},"StandCreate":{"properties":{"name":{"type":"string","maxLength":255,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"latitude":{"type":"number","maximum":90.0,"minimum":-90.0,"title":"Latitude"},"longitude":{"type":"number","maximum":180.0,"minimum":-180.0,"title":"Longitude"},"stand_type":{"$ref":"#/components/schemas/StandType","default":"other"},"location_type":{"anyOf":[{"$ref":"#/components/schemas/LocationType"},{"type":"null"}]},"status":{"$ref":"#/components/schemas/StandStatus","default":"available"},"capacity":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":1.0},{"type":"null"}],"title":"Capacity","default":1},"camera_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Id"},"heading":{"anyOf":[{"$ref":"#/components/schemas/CameraHeading"},{"type":"null"}]},"primary_habitat":{"anyOf":[{"$ref":"#/components/schemas/StandHabitat"},{"type":"null"}]},"access_difficulty":{"anyOf":[{"$ref":"#/components/schemas/StandAccessDifficulty"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"prevailing_wind_safe_directions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Prevailing Wind Safe Directions"}},"type":"object","required":["name","latitude","longitude"],"title":"StandCreate"},"StandCreateRequest":{"properties":{"property_id":{"type":"string","format":"uuid","title":"Property Id"},"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"latitude":{"type":"number","maximum":90.0,"minimum":-90.0,"title":"Latitude"},"longitude":{"type":"number","maximum":180.0,"minimum":-180.0,"title":"Longitude"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"primary_habitat":{"anyOf":[{"$ref":"#/components/schemas/StandHabitat"},{"type":"null"}]},"access_difficulty":{"anyOf":[{"$ref":"#/components/schemas/StandAccessDifficulty"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"prevailing_wind_safe_directions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Prevailing Wind Safe Directions"}},"type":"object","required":["property_id","name","latitude","longitude"],"title":"StandCreateRequest"},"StandDeleteResult":{"properties":{"deleted":{"type":"string","enum":["hard","soft"],"title":"Deleted"},"stand_id":{"type":"string","title":"Stand Id"},"blocked_by":{"items":{"type":"string"},"type":"array","title":"Blocked By","default":[]}},"type":"object","required":["deleted","stand_id"],"title":"StandDeleteResult","description":"WLAI-282. Returned by ``DELETE /properties/{pid}/stands/{sid}``.\n\nThe endpoint takes one of two paths depending on whether the stand\ncarries any real history, so the caller cannot know from the status\ncode alone what happened to the row. ``deleted`` names the path:\n\n  * ``\"hard\"`` — the stand had zero dependent records and the row was\n    physically removed. Nothing recoverable was destroyed; this is a\n    data-entry mistake being undone (the WLAI-282 case: a stand\n    created with the wrong lat/long minutes earlier).\n  * ``\"soft\"`` — the stand has dependents, so the pre-existing\n    archive path ran unchanged (status flipped to ``maintenance``).\n    The row is still there and still readable.\n\n``blocked_by`` is populated on the soft path only, naming the tables\nthat held rows, so the UI can say *why* the stand was archived rather\nthan deleted instead of guessing."},"StandHabitat":{"type":"string","enum":["forest","field","wetland","riparian","mixed"],"title":"StandHabitat","description":"Primary habitat the stand overlooks. Used to match against a\nspecies' ``habitat_affinity`` list for suitability scoring.\n\n``mixed`` is a catch-all for transition zones (forest-field edges,\noak flats bleeding into bottomland, etc.) and scores as a neutral\nmultiplier rather than a bonus."},"StandHazardCreate":{"properties":{"hazard_type":{"$ref":"#/components/schemas/HazardType"},"description":{"type":"string","minLength":1,"title":"Description"},"severity":{"$ref":"#/components/schemas/HazardSeverity"}},"type":"object","required":["hazard_type","description","severity"],"title":"StandHazardCreate"},"StandHazardResponse":{"properties":{"id":{"type":"string","title":"Id"},"stand_id":{"type":"string","title":"Stand Id"},"hazard_type":{"$ref":"#/components/schemas/HazardType"},"description":{"type":"string","title":"Description"},"severity":{"$ref":"#/components/schemas/HazardSeverity"},"is_resolved":{"type":"boolean","title":"Is Resolved"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"resolved_by_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved By Id"},"created_by_id":{"type":"string","title":"Created By Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","stand_id","hazard_type","description","severity","is_resolved","created_by_id","created_at"],"title":"StandHazardResponse"},"StandListResponse":{"properties":{"stands":{"items":{"$ref":"#/components/schemas/app__routers__stands__StandResponse"},"type":"array","title":"Stands"}},"type":"object","required":["stands"],"title":"StandListResponse"},"StandNoteCreate":{"properties":{"note_type":{"$ref":"#/components/schemas/StandNoteType"},"body":{"type":"string","minLength":1,"title":"Body"}},"type":"object","required":["note_type","body"],"title":"StandNoteCreate"},"StandNoteResponse":{"properties":{"id":{"type":"string","title":"Id"},"stand_id":{"type":"string","title":"Stand Id"},"note_type":{"$ref":"#/components/schemas/StandNoteType"},"body":{"type":"string","title":"Body"},"author_id":{"type":"string","title":"Author Id"},"is_resolved":{"type":"boolean","title":"Is Resolved"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"resolved_by_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved By Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","stand_id","note_type","body","author_id","is_resolved","created_at"],"title":"StandNoteResponse"},"StandNoteType":{"type":"string","enum":["guide","maintenance"],"title":"StandNoteType","description":"Discriminator for `stand_notes.note_type`. ``guide`` notes are\nwritten by guides during/after a hunt; ``maintenance`` notes track\nrepairs, hardware checks, and scheduled upkeep."},"StandRecBody":{"properties":{"stand_id":{"type":"string","title":"Stand Id"},"stand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stand Name"},"score":{"type":"number","title":"Score"},"confidence":{"type":"number","title":"Confidence"},"rationale":{"additionalProperties":true,"type":"object","title":"Rationale"},"client_rationale":{"additionalProperties":true,"type":"object","title":"Client Rationale"}},"type":"object","required":["stand_id","stand_name","score","confidence","rationale","client_rationale"],"title":"StandRecBody"},"StandStatus":{"type":"string","enum":["available","occupied","maintenance"],"title":"StandStatus","description":"Operational availability of a stand for assignment."},"StandStatusUpdate":{"properties":{"status":{"$ref":"#/components/schemas/StandStatus"}},"type":"object","required":["status"],"title":"StandStatusUpdate","description":"Standalone status update — separate so the audit log can\ndistinguish \"manager flipped status\" from full-stand patches."},"StandType":{"type":"string","enum":["tree_stand","ground_blind","raised_box_blind","tower_blind","popup_blind","other"],"title":"StandType","description":"Physical kind of stand / blind."},"StandUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"latitude":{"anyOf":[{"type":"number","maximum":90.0,"minimum":-90.0},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number","maximum":180.0,"minimum":-180.0},{"type":"null"}],"title":"Longitude"},"stand_type":{"anyOf":[{"$ref":"#/components/schemas/StandType"},{"type":"null"}]},"location_type":{"anyOf":[{"$ref":"#/components/schemas/LocationType"},{"type":"null"}]},"status":{"anyOf":[{"$ref":"#/components/schemas/StandStatus"},{"type":"null"}]},"capacity":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":1.0},{"type":"null"}],"title":"Capacity"},"camera_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Id"},"heading":{"anyOf":[{"$ref":"#/components/schemas/CameraHeading"},{"type":"null"}]},"primary_habitat":{"anyOf":[{"$ref":"#/components/schemas/StandHabitat"},{"type":"null"}]},"access_difficulty":{"anyOf":[{"$ref":"#/components/schemas/StandAccessDifficulty"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"prevailing_wind_safe_directions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Prevailing Wind Safe Directions"}},"type":"object","title":"StandUpdate"},"StandUsageResponse":{"properties":{"id":{"type":"string","title":"Id"},"stand_id":{"type":"string","title":"Stand Id"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"hunt_plan_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hunt Plan Id"},"hunt_date":{"type":"string","format":"date","title":"Hunt Date"},"window":{"additionalProperties":true,"type":"object","title":"Window"},"movement_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Movement Score"},"wind_alignment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wind Alignment"},"success_indicator":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Success Indicator"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","stand_id","client_id","hunt_plan_id","hunt_date","window","movement_score","wind_alignment","success_indicator","created_at"],"title":"StandUsageResponse"},"StateHarvestUrlResponse":{"properties":{"state_code":{"type":"string","title":"State Code"},"url":{"type":"string","title":"Url"},"label":{"type":"string","title":"Label"},"reporting_method":{"type":"string","title":"Reporting Method","default":"online"},"agency_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agency Url"}},"type":"object","required":["state_code","url","label"],"title":"StateHarvestUrlResponse"},"StorageBlock":{"properties":{"total_bytes":{"type":"integer","minimum":0.0,"title":"Total Bytes"},"photo_count":{"type":"integer","minimum":0.0,"title":"Photo Count"},"note":{"type":"string","title":"Note","default":"DB sum of file_size_bytes; excludes any orphan R2 blobs"}},"type":"object","required":["total_bytes","photo_count"],"title":"StorageBlock","description":"Storage utilization snapshot — sum of ``photos.file_size_bytes``\nplus a photo count for context. R2 bucket size is the authoritative\nnumber but isn't queryable from the API service today; the DB sum\nis a tight under-bound (excludes orphan blobs)."},"StripeMeteredDimension":{"properties":{"dimension":{"type":"string","title":"Dimension"},"subscription_item_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Item Id"},"quantity":{"type":"integer","title":"Quantity"},"would_post":{"type":"boolean","title":"Would Post"},"skip_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Skip Reason"}},"type":"object","required":["dimension","subscription_item_id","quantity","would_post","skip_reason"],"title":"StripeMeteredDimension","description":"One metered dimension's would-be Stripe post (WLAI-303).\n\nEach dimension has its own subscription item because they are priced\ndifferently and a single Stripe item cannot carry two quantities.\n``skip_reason`` is per-dimension so an operator can see that photos would\npost while tracked-bucks is simply not wired yet — a single top-level reason\ncould not express that."},"StripeUsageRecordPreview":{"properties":{"subscription_item_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Item Id"},"photos_quantity":{"type":"integer","title":"Photos Quantity"},"ingestion_mb_quantity":{"type":"integer","title":"Ingestion Mb Quantity"},"would_post":{"type":"boolean","title":"Would Post"},"skip_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Skip Reason"},"tracked_bucks_quantity":{"type":"integer","title":"Tracked Bucks Quantity","default":0},"dimensions":{"items":{"$ref":"#/components/schemas/StripeMeteredDimension"},"type":"array","title":"Dimensions","default":[]}},"type":"object","required":["subscription_item_id","photos_quantity","ingestion_mb_quantity","would_post","skip_reason"],"title":"StripeUsageRecordPreview","description":"Returned by the test-mode preview endpoint. Mirrors the\nshape we'd ship to Stripe so an operator can eyeball the\npayload before live billing is wired in."},"StuckAnalysisActionRequest":{"properties":{"photo_ids":{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1,"title":"Photo Ids"}},"type":"object","required":["photo_ids"],"title":"StuckAnalysisActionRequest"},"StuckAnalysisListResponse":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/StuckPhotoRow"},"type":"array","title":"Rows"},"total":{"type":"integer","title":"Total","description":"Total matching rows ignoring the page cap, so the UI can say 'showing N of M'."},"returned":{"type":"integer","title":"Returned"},"truncated":{"type":"boolean","title":"Truncated","description":"True when total exceeded the cap and rows are partial."},"stale_minutes":{"type":"integer","title":"Stale Minutes","description":"Threshold this result was computed with."},"property_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Id","description":"NULL when the query was platform-wide."},"as_of":{"type":"string","format":"date-time","title":"As Of"}},"type":"object","required":["rows","total","returned","truncated","stale_minutes","as_of"],"title":"StuckAnalysisListResponse"},"StuckPhotoRow":{"properties":{"photo_id":{"type":"string","title":"Photo Id"},"property_id":{"type":"string","title":"Property Id"},"property_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Name","description":"Property display name, for the admin table."},"analysis_status":{"type":"string","title":"Analysis Status","description":"'pending' or 'processing' — the non-terminal set."},"reason":{"type":"string","title":"Reason","description":"WHY this row is flagged, not a restatement of its status. One of 'missing_object' (the R2 object is gone — requeue cannot help), 'never_dispatched' (written but the analysis task was never enqueued), or 'stale_in_progress' (left mid-analysis with no live retry). Note there is deliberately no 'exhausted_retries': nothing records an attempt count, and an exhausted row is already 'failed' and therefore terminal."},"reason_detail":{"type":"string","title":"Reason Detail","description":"Operator-facing sentence explaining the reason."},"r2_key":{"type":"string","title":"R2 Key"},"object_exists":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Object Exists","description":"NULL — not false — when R2 could not be consulted. A transient storage error must not read as 'the object is gone'."},"upload_batch_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upload Batch Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"stale_minutes":{"type":"integer","title":"Stale Minutes","description":"Whole minutes since updated_at."}},"type":"object","required":["photo_id","property_id","analysis_status","reason","reason_detail","r2_key","created_at","updated_at","stale_minutes"],"title":"StuckPhotoRow","description":"One photo stranded in a non-terminal analysis state."},"SubjectAttributeCorrection":{"properties":{"op":{"type":"string","enum":["correct","add","delete"],"title":"Op","default":"correct"},"subject_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Id"},"attribute":{"anyOf":[{"type":"string","maxLength":50,"minLength":1},{"type":"null"}],"title":"Attribute"},"corrected_value":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Corrected Value"},"species":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Species"},"region":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Region"}},"type":"object","title":"SubjectAttributeCorrection","description":"One entry in the ``corrections[]`` array — a correct, an add, or a reject.\n\nTHREE SHAPES IN ONE ARRAY, which is spec §5's explicit instruction: *\"Extend\nthe existing POST /photos/{id}/correct corrections[] array rather than adding\na parallel surface.\"* One submit from the detail modal is therefore one\nrequest, one transaction and one species rollup, however many boxes the user\ntouched. ``op`` selects the shape and defaults to ``correct``, so every\nexisting caller and every stored client payload keeps working unchanged.\n\n| ``op``      | required            | meaning                                |\n|-------------|---------------------|----------------------------------------|\n| ``correct`` | subject_id, attribute, corrected_value | change an attribute of a detected subject (FR1/FR7) |\n| ``add``     | species (region optional)              | a subject the analyzer missed (FR2) |\n| ``delete``  | subject_id                             | soft-reject a false detection (FR3) |\n\n``subject_id`` targets an ``individuals[]`` entry in the photo's CURRENT\nanalysis generation (row-scoped, FR4) — an ``add`` has none because the\nsubject does not exist yet, and the service mints one.\n\nThe per-op requirements are enforced HERE rather than in the service so the\nthree shapes stay legible as a contract: making the fields optional to admit\n``add`` would otherwise quietly weaken the validation the correct path has\nhad since increment 1, which is the failure this validator exists to prevent."},"SubjectResult":{"properties":{"subject_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Id"},"bbox":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Bbox"},"species":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species"},"sex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sex"},"age_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Age Class"},"body_condition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Condition"},"orientation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Orientation"},"corrected":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/CorrectedAttribute"},"type":"object"},{"type":"null"}],"title":"Corrected"},"is_rejected":{"type":"boolean","title":"Is Rejected","default":false},"is_user_added":{"type":"boolean","title":"Is User Added","default":false}},"type":"object","title":"SubjectResult","description":"One detected individual in a frame, projected from the ``Analysis.individuals``\nJSONB (Gallery B1).\n\nFR8 fusion contract: ``subject_id`` + ``bbox`` are stamped inline by crop-per-box\nfusion (FR2) and are the stable per-subject anchor the correction flow targets.\nBoth are **null on legacy / unfused (batch) rows** — the FE detects fusion-vs-legacy\nby their presence and must not synthesize a box when they are null. ``corrected``\nis the per-attribute correction map (FR8), null until Phase 4 populates the\n``analysis_corrections`` COALESCE.\n\nEvery field is nullable: a malformed/partial individual must not break the panel."},"SubscriptionTier":{"type":"string","enum":["free","pro","elite","intelligence_plus","outfitter_tier_1","outfitter_tier_2","outfitter_tier_3"],"title":"SubscriptionTier"},"SuitabilityGenerateRequest":{"properties":{"property_id":{"type":"string","format":"uuid","title":"Property Id"},"species_taxon_id":{"type":"string","title":"Species Taxon Id"},"horizon_hours":{"type":"integer","maximum":168.0,"minimum":1.0,"title":"Horizon Hours","default":24}},"type":"object","required":["property_id","species_taxon_id"],"title":"SuitabilityGenerateRequest"},"SuitabilityHourly":{"properties":{"timestamp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timestamp"},"score":{"type":"number","title":"Score"}},"type":"object","required":["timestamp","score"],"title":"SuitabilityHourly"},"SuitabilityListResponse":{"properties":{"suitability":{"items":{"$ref":"#/components/schemas/SuitabilityResponse"},"type":"array","title":"Suitability"}},"type":"object","required":["suitability"],"title":"SuitabilityListResponse"},"SuitabilityRationale":{"properties":{"pattern_factors":{"items":{"type":"string"},"type":"array","title":"Pattern Factors","default":[]},"weather_factors":{"items":{"type":"string"},"type":"array","title":"Weather Factors","default":[]},"species_behavior_factors":{"items":{"type":"string"},"type":"array","title":"Species Behavior Factors","default":[]},"stand_factors":{"items":{"type":"string"},"type":"array","title":"Stand Factors","default":[]}},"type":"object","title":"SuitabilityRationale"},"SuitabilityResponse":{"properties":{"id":{"type":"string","title":"Id"},"stand_id":{"type":"string","title":"Stand Id"},"stand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stand Name"},"species_taxon_id":{"type":"string","title":"Species Taxon Id"},"species_canonical_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species Canonical Name"},"horizon_hours":{"type":"integer","title":"Horizon Hours"},"suitability_score":{"type":"number","title":"Suitability Score"},"hourly_scores":{"items":{"$ref":"#/components/schemas/SuitabilityHourly"},"type":"array","title":"Hourly Scores"},"best_windows":{"items":{"$ref":"#/components/schemas/SuitabilityWindow"},"type":"array","title":"Best Windows"},"rationale":{"$ref":"#/components/schemas/SuitabilityRationale"},"ml_delta":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ml Delta"},"combined_suitability":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Combined Suitability"},"hpi":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Hpi"},"adjusted_suitability":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Adjusted Suitability"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"}},"type":"object","required":["id","stand_id","species_taxon_id","horizon_hours","suitability_score","hourly_scores","best_windows","rationale","generated_at"],"title":"SuitabilityResponse"},"SuitabilityWindow":{"properties":{"start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start"},"end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End"},"score":{"type":"number","title":"Score"}},"type":"object","required":["start","end","score"],"title":"SuitabilityWindow"},"SystemAdminGrantRequest":{"properties":{"profile_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"flag":{"type":"string","enum":["platform_admin","system_admin"],"title":"Flag","default":"platform_admin"},"reason":{"type":"string","maxLength":500,"minLength":8,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["reason"],"title":"SystemAdminGrantRequest","description":"Grant ``profiles.is_admin`` to exactly one account.\n\nIdentify the target by ``profile_id`` OR ``email``, not both and not\nneither — the router 422s otherwise rather than guessing. Email is\noffered because a founder provisioning a new colleague knows the address\nlong before the profile UUID, and forcing a lookup round-trip is the kind\nof friction that pushes people back to raw SQL."},"SystemAdminGrantResponse":{"properties":{"profile_id":{"type":"string","title":"Profile Id"},"email":{"type":"string","title":"Email"},"flag":{"type":"string","enum":["platform_admin","system_admin"],"title":"Flag","default":"platform_admin"},"is_admin":{"type":"boolean","title":"Is Admin"},"is_system_admin":{"type":"boolean","title":"Is System Admin","default":false},"changed":{"type":"boolean","title":"Changed"},"granted_by":{"type":"string","title":"Granted By"},"granted_by_email":{"type":"string","title":"Granted By Email"},"reason":{"type":"string","title":"Reason"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"},"audit_log_id":{"type":"string","title":"Audit Log Id"}},"type":"object","required":["profile_id","email","is_admin","changed","granted_by","granted_by_email","reason","occurred_at","audit_log_id"],"title":"SystemAdminGrantResponse","description":"Result of a grant or revoke.\n\n``changed`` is False when the account already held the target state. The\ncall still succeeds (idempotent), still writes an audit row, and says so\nplainly — a silent no-op reported as success would leave the caller\nbelieving they had changed something they had not."},"SystemAdminRevokeRequest":{"properties":{"flag":{"type":"string","enum":["platform_admin","system_admin"],"title":"Flag","default":"platform_admin"},"reason":{"type":"string","maxLength":500,"minLength":8,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["reason"],"title":"SystemAdminRevokeRequest","description":"Revoke ``profiles.is_admin`` from one account. Reason equally required."},"SystemHealthResponse":{"properties":{"db_healthy":{"type":"boolean","title":"Db Healthy"},"redis_healthy":{"type":"boolean","title":"Redis Healthy"},"recent_syncs":{"items":{"$ref":"#/components/schemas/RecentSyncRow"},"type":"array","title":"Recent Syncs"},"worker_last_heartbeat":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Worker Last Heartbeat"}},"type":"object","required":["db_healthy","redis_healthy","recent_syncs","worker_last_heartbeat"],"title":"SystemHealthResponse"},"SystemHealthSloResponse":{"properties":{"uptime":{"$ref":"#/components/schemas/UptimeSummary"},"slos":{"additionalProperties":{"$ref":"#/components/schemas/SloMetric"},"type":"object","title":"Slos"}},"type":"object","required":["uptime","slos"],"title":"SystemHealthSloResponse","description":"Full SLO dashboard payload — one ``GET`` on page load.\n\n``slos`` is keyed by the frontend's card keys: ``uptime_1h``,\n``photo_processing_median_s``, ``ai_accuracy_7d``,\n``api_latency_p95_ms``, ``dlq_depth``, ``dsar_oldest_days``."},"TaxonListResponse":{"properties":{"taxa":{"items":{"$ref":"#/components/schemas/TaxonResponse"},"type":"array","title":"Taxa"}},"type":"object","required":["taxa"],"title":"TaxonListResponse"},"TaxonResponse":{"properties":{"id":{"type":"string","title":"Id"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"canonical_name":{"type":"string","title":"Canonical Name"},"scientific_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scientific Name"},"rank":{"type":"string","title":"Rank"},"trophic_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trophic Role"},"regulatory_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Regulatory Class"},"activity_pattern":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Activity Pattern"},"habitat_affinity":{"items":{"type":"string"},"type":"array","title":"Habitat Affinity"},"synonyms":{"items":{"type":"string"},"type":"array","title":"Synonyms"},"common_names":{"items":{"type":"string"},"type":"array","title":"Common Names"}},"type":"object","required":["id","parent_id","canonical_name","scientific_name","rank","trophic_role","regulatory_class","activity_pattern","habitat_affinity","synonyms","common_names"],"title":"TaxonResponse"},"TeamAddonRequest":{"properties":{"quantity":{"type":"integer","title":"Quantity"}},"type":"object","required":["quantity"],"title":"TeamAddonRequest"},"TeamAddonResponse":{"properties":{"team_addon_seats":{"type":"integer","title":"Team Addon Seats"},"message":{"type":"string","title":"Message"}},"type":"object","required":["team_addon_seats","message"],"title":"TeamAddonResponse"},"TemporalPatternResponse":{"properties":{"id":{"type":"string","title":"Id"},"profile_id":{"type":"string","title":"Profile Id"},"property_id":{"type":"string","title":"Property Id"},"species_taxon_id":{"type":"string","title":"Species Taxon Id"},"species_canonical_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species Canonical Name"},"species_scientific_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species Scientific Name"},"computed_at":{"type":"string","format":"date-time","title":"Computed At"},"recurrence_days":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Recurrence Days"},"peak_windows":{"anyOf":[{"items":{"$ref":"#/components/schemas/PeakWindow"},"type":"array"},{"type":"null"}],"title":"Peak Windows"},"daypart_distribution":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"title":"Daypart Distribution"},"hourly_curve":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Hourly Curve"},"weekly_curve":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Weekly Curve"},"seasonal_curve":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Seasonal Curve"},"sample_size":{"type":"integer","title":"Sample Size"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"}},"type":"object","required":["id","profile_id","property_id","species_taxon_id","computed_at","recurrence_days","peak_windows","daypart_distribution","hourly_curve","weekly_curve","seasonal_curve","sample_size","confidence"],"title":"TemporalPatternResponse"},"TicketDetailResponse":{"properties":{"id":{"type":"string","title":"Id"},"profile_id":{"type":"string","title":"Profile Id"},"subject":{"type":"string","title":"Subject"},"category":{"type":"string","title":"Category"},"priority":{"type":"string","title":"Priority"},"status":{"type":"string","title":"Status"},"first_response_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Response At"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"closed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Closed At"},"last_activity_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Activity At"},"assigned_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned To"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"message_count":{"type":"integer","title":"Message Count","default":0},"messages":{"items":{"$ref":"#/components/schemas/TicketMessageResponse"},"type":"array","title":"Messages","default":[]}},"type":"object","required":["id","profile_id","subject","category","priority","status","created_at","updated_at"],"title":"TicketDetailResponse"},"TicketListResponse":{"properties":{"tickets":{"items":{"$ref":"#/components/schemas/TicketResponse"},"type":"array","title":"Tickets"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["tickets","total"],"title":"TicketListResponse"},"TicketMessageResponse":{"properties":{"id":{"type":"string","title":"Id"},"author_id":{"type":"string","title":"Author Id"},"author_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Name"},"body":{"type":"string","title":"Body"},"is_admin_reply":{"type":"boolean","title":"Is Admin Reply"},"is_system_message":{"type":"boolean","title":"Is System Message"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","author_id","body","is_admin_reply","is_system_message","created_at"],"title":"TicketMessageResponse"},"TicketResponse":{"properties":{"id":{"type":"string","title":"Id"},"profile_id":{"type":"string","title":"Profile Id"},"subject":{"type":"string","title":"Subject"},"category":{"type":"string","title":"Category"},"priority":{"type":"string","title":"Priority"},"status":{"type":"string","title":"Status"},"first_response_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Response At"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"closed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Closed At"},"last_activity_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Activity At"},"assigned_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned To"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"message_count":{"type":"integer","title":"Message Count","default":0}},"type":"object","required":["id","profile_id","subject","category","priority","status","created_at","updated_at"],"title":"TicketResponse"},"TierLimitsResponse":{"properties":{"max_photos_per_month":{"type":"integer","title":"Max Photos Per Month"},"max_ingestion_mb":{"type":"integer","title":"Max Ingestion Mb"},"max_cameras":{"type":"integer","title":"Max Cameras"}},"type":"object","required":["max_photos_per_month","max_ingestion_mb","max_cameras"],"title":"TierLimitsResponse","description":"Per-tier monthly caps. ``-1`` is the unlimited sentinel."},"TimeOfDay":{"type":"string","enum":["dawn","morning","midday","afternoon","dusk","night"],"title":"TimeOfDay"},"TopIndividualEntry":{"properties":{"buck_id":{"type":"string","title":"Buck Id"},"antler_points":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Antler Points"},"antler_score_estimate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Antler Score Estimate"},"age_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Age Class"},"sighting_count":{"type":"integer","title":"Sighting Count"},"last_seen_at":{"type":"string","format":"date-time","title":"Last Seen At"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"}},"type":"object","required":["buck_id","antler_points","antler_score_estimate","age_class","sighting_count","last_seen_at"],"title":"TopIndividualEntry"},"TopIndividualsResponse":{"properties":{"property_id":{"type":"string","title":"Property Id"},"individuals":{"items":{"$ref":"#/components/schemas/TopIndividualEntry"},"type":"array","title":"Individuals"}},"type":"object","required":["property_id","individuals"],"title":"TopIndividualsResponse"},"TrackedBuckDetail":{"properties":{"id":{"type":"string","title":"Id"},"antler_points":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Antler Points"},"antler_score_estimate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Antler Score Estimate"},"age_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Age Class"},"first_seen_at":{"type":"string","format":"date-time","title":"First Seen At"},"last_seen_at":{"type":"string","format":"date-time","title":"Last Seen At"},"sighting_count":{"type":"integer","title":"Sighting Count"},"property_count":{"type":"integer","title":"Property Count"},"antler_signature":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Antler Signature"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"sightings":{"items":{"$ref":"#/components/schemas/BuckSightingResponse"},"type":"array","title":"Sightings","default":[]}},"type":"object","required":["id","first_seen_at","last_seen_at","sighting_count","property_count","status","created_at"],"title":"TrackedBuckDetail","description":"Extended buck detail with sighting timeline."},"TrackedBuckResponse":{"properties":{"id":{"type":"string","title":"Id"},"antler_points":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Antler Points"},"antler_score_estimate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Antler Score Estimate"},"age_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Age Class"},"first_seen_at":{"type":"string","format":"date-time","title":"First Seen At"},"last_seen_at":{"type":"string","format":"date-time","title":"Last Seen At"},"sighting_count":{"type":"integer","title":"Sighting Count"},"property_count":{"type":"integer","title":"Property Count"},"antler_signature":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Antler Signature"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","first_seen_at","last_seen_at","sighting_count","property_count","status","created_at"],"title":"TrackedBuckResponse","description":"A tracked buck visible to any authenticated user."},"TrainRequest":{"properties":{"species_taxon_id":{"type":"string","title":"Species Taxon Id"},"property_id":{"type":"string","title":"Property Id"},"lookback_days":{"type":"integer","maximum":365.0,"minimum":14.0,"title":"Lookback Days","default":90}},"type":"object","required":["species_taxon_id","property_id"],"title":"TrainRequest"},"TrainingDatasetRequest":{"properties":{"format":{"type":"string","title":"Format","description":"Output format: jsonl, csv, parquet","default":"jsonl"},"taxonomic_classes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Taxonomic Classes"},"quality_grades":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Quality Grades"},"min_images_per_species":{"type":"integer","minimum":1.0,"title":"Min Images Per Species","default":5},"max_images_per_species":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Max Images Per Species","default":100},"wildlens_only":{"type":"boolean","title":"Wildlens Only","default":false},"include_bounding_boxes":{"type":"boolean","title":"Include Bounding Boxes","default":true},"include_wildlens_verified":{"type":"boolean","title":"Include Wildlens Verified","default":true},"property_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Id"}},"type":"object","title":"TrainingDatasetRequest","description":"Request to build a training dataset."},"TrendPoint":{"properties":{"period":{"type":"string","title":"Period"},"species":{"type":"string","title":"Species"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["period","species","count"],"title":"TrendPoint"},"UiStateResponse":{"properties":{"welcome_dismissed_version":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"null"}],"title":"Welcome Dismissed Version"},"tour_completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tour Completed At"},"notice_dismissals":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/NoticeDismissal"},"type":"object"},{"type":"null"}],"title":"Notice Dismissals"}},"type":"object","title":"UiStateResponse"},"UiStateUpdate":{"properties":{"welcome_dismissed_version":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"null"}],"title":"Welcome Dismissed Version"},"tour_completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tour Completed At"},"notice_dismissals":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/NoticeDismissal"},"type":"object"},{"type":"null"}],"title":"Notice Dismissals"}},"additionalProperties":false,"type":"object","title":"UiStateUpdate"},"UnifiedAccountRow":{"properties":{"id":{"type":"string","title":"Id"},"entity_type":{"type":"string","enum":["account","organization"],"title":"Entity Type"},"product_line":{"type":"string","title":"Product Line"},"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"},"entitlement_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Entitlement Count"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","entity_type","product_line","name","created_at"],"title":"UnifiedAccountRow","description":"One row of the unified list — an individual account or an organization."},"UnreadCountResponse":{"properties":{"unread":{"type":"integer","title":"Unread"}},"type":"object","required":["unread"],"title":"UnreadCountResponse"},"UpdateBillingTierRequest":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"tier":{"$ref":"#/components/schemas/SubscriptionTier"},"seats":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Seats"}},"type":"object","required":["organization_id","tier"],"title":"UpdateBillingTierRequest"},"UpdateBillingTierResponse":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"tier":{"$ref":"#/components/schemas/SubscriptionTier"},"seats_purchased":{"type":"integer","title":"Seats Purchased"}},"type":"object","required":["organization_id","tier","seats_purchased"],"title":"UpdateBillingTierResponse"},"UpdateMemberRoleRequest":{"properties":{"role":{"$ref":"#/components/schemas/OrganizationRole"}},"type":"object","required":["role"],"title":"UpdateMemberRoleRequest"},"UpdateOrganizationRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Name"},"logo_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Logo Url"},"timezone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Timezone"},"brand_color":{"anyOf":[{"type":"string","maxLength":9},{"type":"null"}],"title":"Brand Color"},"seats_purchased":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Seats Purchased"},"staff_seats_purchased":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Staff Seats Purchased"},"client_seats_purchased":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Client Seats Purchased"}},"type":"object","title":"UpdateOrganizationRequest","description":"Body for ``PATCH /admin/organizations/{org_id}``.\n\nAll fields optional — only fields explicitly present in the\nrequest are touched. ``logo_url=\"\"`` clears the logo."},"UpdateTicketRequest":{"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"},"assigned_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned To"}},"type":"object","title":"UpdateTicketRequest"},"UploadBatchListResponse":{"properties":{"batches":{"items":{"$ref":"#/components/schemas/UploadBatchStatusResponse"},"type":"array","title":"Batches"}},"type":"object","required":["batches"],"title":"UploadBatchListResponse"},"UploadBatchStatus":{"type":"string","enum":["pending","processing","completed","failed","partial","rejected"],"title":"UploadBatchStatus","description":"Lifecycle of a multi-file ingest job."},"UploadBatchStatusResponse":{"properties":{"batch_id":{"type":"string","title":"Batch Id"},"property_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Id"},"source":{"$ref":"#/components/schemas/PhotoIngestSource"},"status":{"$ref":"#/components/schemas/UploadBatchStatus"},"total_files":{"type":"integer","title":"Total Files"},"processed_files":{"type":"integer","title":"Processed Files"},"duplicate_files":{"type":"integer","title":"Duplicate Files"},"failed_files":{"type":"integer","title":"Failed Files"},"rejected_files":{"type":"integer","title":"Rejected Files","default":0},"rejection_reasons":{"additionalProperties":{"type":"integer"},"type":"object","title":"Rejection Reasons"},"errors_truncated":{"type":"integer","title":"Errors Truncated","default":0},"cost_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Usd"},"original_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Filename"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["batch_id","property_id","source","status","total_files","processed_files","duplicate_files","failed_files","cost_usd","original_filename","notes","created_at","started_at","completed_at"],"title":"UploadBatchStatusResponse"},"UploadItemRow":{"properties":{"id":{"type":"string","title":"Id"},"row_index":{"type":"integer","title":"Row Index"},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url"},"status":{"type":"string","title":"Status"},"photo_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Photo Id"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"source_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Source Metadata"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","row_index","source_url","status","photo_id","error_message","source_metadata","updated_at"],"title":"UploadItemRow"},"UploadItemsResponse":{"properties":{"batch_id":{"type":"string","title":"Batch Id"},"total":{"type":"integer","title":"Total"},"completed":{"type":"integer","title":"Completed"},"failed":{"type":"integer","title":"Failed"},"pending":{"type":"integer","title":"Pending"},"items":{"items":{"$ref":"#/components/schemas/UploadItemRow"},"type":"array","title":"Items"}},"type":"object","required":["batch_id","total","completed","failed","pending","items"],"title":"UploadItemsResponse"},"UploadUrlRequest":{"properties":{"camera_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Camera Id"},"property_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Property Id"},"filename":{"type":"string","maxLength":500,"title":"Filename"},"content_type":{"type":"string","pattern":"^(?:image/heic|image/heif|image/jpeg|image/jpg|image/png|image/webp)$","title":"Content Type"},"file_size":{"type":"integer","maximum":20000000.0,"exclusiveMinimum":0.0,"title":"File Size"}},"type":"object","required":["filename","content_type","file_size"],"title":"UploadUrlRequest","description":"Body for `POST /photos/upload-url`.\n\nPer data-ingestion-standards.md §4 (PR #40 / audit C3), `camera_id`\nis optional. When omitted, the caller must supply `property_id` so\nthe Photo row still has a tenant boundary. Exactly one of the two\nis required:\n\n* `camera_id` provided  → property is derived from the camera\n* `camera_id` omitted   → caller must pass `property_id` directly\n\nPR-B (#43) originally introduced this widening; the merge into PR-A's\nbranch left the change orphaned when PR-A squash-merged to main.\nPR-H re-applies the schema + service edits and adds DOM-013 to\ncatch the regression mechanically."},"UploadUrlResponse":{"properties":{"photo_id":{"type":"string","title":"Photo Id"},"upload_url":{"type":"string","title":"Upload Url"},"r2_key":{"type":"string","title":"R2 Key"},"fields":{"additionalProperties":true,"type":"object","title":"Fields","default":{}}},"type":"object","required":["photo_id","upload_url","r2_key"],"title":"UploadUrlResponse"},"UptimeSummary":{"properties":{"last_1h_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Last 1H Pct"},"last_24h_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Last 24H Pct"},"last_30d_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Last 30D Pct"}},"type":"object","title":"UptimeSummary","description":"The three uptime cards across the top of the page."},"UsageCost":{"properties":{"analysis_cost_usd":{"type":"number","title":"Analysis Cost Usd"},"storage_cost_usd":{"type":"number","title":"Storage Cost Usd"},"legacy_cost_usd":{"type":"number","title":"Legacy Cost Usd"},"total_cost_usd":{"type":"number","title":"Total Cost Usd"}},"type":"object","required":["analysis_cost_usd","storage_cost_usd","legacy_cost_usd","total_cost_usd"],"title":"UsageCost"},"UsageCostResponse":{"properties":{"date_from":{"type":"string","format":"date-time","title":"Date From"},"date_to":{"type":"string","format":"date-time","title":"Date To"},"cost":{"$ref":"#/components/schemas/UsageCost"},"ingestion":{"$ref":"#/components/schemas/UsageIngestion"}},"type":"object","required":["date_from","date_to","cost","ingestion"],"title":"UsageCostResponse"},"UsageDailyPoint":{"properties":{"day":{"type":"string","title":"Day"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["day","count"],"title":"UsageDailyPoint"},"UsageEventRecordRequest":{"properties":{"event_type":{"$ref":"#/components/schemas/UsageEventType"},"property_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Id"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object","maxProperties":20},{"type":"null"}],"title":"Metadata"}},"type":"object","required":["event_type"],"title":"UsageEventRecordRequest"},"UsageEventRecordResponse":{"properties":{"event_id":{"type":"string","title":"Event Id"},"recorded_at":{"type":"string","format":"date-time","title":"Recorded At"}},"type":"object","required":["event_id","recorded_at"],"title":"UsageEventRecordResponse"},"UsageEventType":{"type":"string","enum":["heatmap_view","corridor_view","matrix_view","report_generated","zip_ingest_started","zip_ingest_completed","onboarding_step_completed","dashboard_view","camera_view","species_view","case_study_generated","hank_ask"],"title":"UsageEventType","description":"Outfitter usage-analytics events emitted from the /pro workspace."},"UsageIngestion":{"properties":{"total_photos":{"type":"integer","title":"Total Photos"},"processed_photos":{"type":"integer","title":"Processed Photos"},"completed_batches":{"type":"integer","title":"Completed Batches"},"total_batches":{"type":"integer","title":"Total Batches"}},"type":"object","required":["total_photos","processed_photos","completed_batches","total_batches"],"title":"UsageIngestion"},"UsageMeResponse":{"properties":{"photos_used":{"type":"integer","title":"Photos Used"},"photos_limit":{"type":"integer","title":"Photos Limit"},"sessions_used":{"type":"integer","title":"Sessions Used"},"sessions_limit":{"type":"integer","title":"Sessions Limit"},"cameras_used":{"type":"integer","title":"Cameras Used"},"cameras_limit":{"type":"integer","title":"Cameras Limit"},"properties_used":{"type":"integer","title":"Properties Used"},"properties_limit":{"type":"integer","title":"Properties Limit"},"reset_date":{"type":"string","format":"date-time","title":"Reset Date"},"scope":{"type":"string","title":"Scope"}},"type":"object","required":["photos_used","photos_limit","sessions_used","sessions_limit","cameras_used","cameras_limit","properties_used","properties_limit","reset_date","scope"],"title":"UsageMeResponse"},"UsageMeterListResponse":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"current":{"anyOf":[{"$ref":"#/components/schemas/UsageMeterResponse"},{"type":"null"}]},"history":{"items":{"$ref":"#/components/schemas/UsageMeterResponse"},"type":"array","title":"History"}},"type":"object","required":["organization_id","current","history"],"title":"UsageMeterListResponse","description":"Returned by ``GET /admin/usage/{org_id}``. Lists all meters\nfor the org (current draft + closed history)."},"UsageMeterResponse":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"period_start":{"type":"string","format":"date","title":"Period Start"},"period_end":{"type":"string","format":"date","title":"Period End"},"photos_analyzed":{"type":"integer","title":"Photos Analyzed"},"ingestion_mb":{"type":"integer","title":"Ingestion Mb"},"cameras_active":{"type":"integer","title":"Cameras Active"},"tracked_bucks_active":{"type":"integer","title":"Tracked Bucks Active","default":0},"overage_photos":{"type":"integer","title":"Overage Photos"},"overage_ingestion_mb":{"type":"integer","title":"Overage Ingestion Mb"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tier"},"tier_limits":{"$ref":"#/components/schemas/TierLimitsResponse"},"over_camera_limit":{"type":"boolean","title":"Over Camera Limit"}},"type":"object","required":["id","organization_id","period_start","period_end","photos_analyzed","ingestion_mb","cameras_active","overage_photos","overage_ingestion_mb","status","created_at","updated_at","tier","tier_limits","over_camera_limit"],"title":"UsageMeterResponse","description":"One usage-meter row + the tier the org was on when the\nresponse was rendered. The frontend treats this as a snapshot;\nthe meter row itself is never edited by the UI."},"UsagePropertyResponse":{"properties":{"property_id":{"type":"string","title":"Property Id"},"date_from":{"type":"string","format":"date-time","title":"Date From"},"date_to":{"type":"string","format":"date-time","title":"Date To"},"total_events":{"type":"integer","title":"Total Events"},"events_by_type":{"additionalProperties":{"type":"integer"},"type":"object","title":"Events By Type"},"ingestion":{"$ref":"#/components/schemas/UsageIngestion"},"cost":{"$ref":"#/components/schemas/UsageCost"}},"type":"object","required":["property_id","date_from","date_to","total_events","events_by_type","ingestion","cost"],"title":"UsagePropertyResponse"},"UsageSummaryResponse":{"properties":{"date_from":{"type":"string","format":"date-time","title":"Date From"},"date_to":{"type":"string","format":"date-time","title":"Date To"},"total_events":{"type":"integer","title":"Total Events"},"events_by_type":{"additionalProperties":{"type":"integer"},"type":"object","title":"Events By Type"},"events_by_property":{"additionalProperties":{"type":"integer"},"type":"object","title":"Events By Property"},"daily":{"items":{"$ref":"#/components/schemas/UsageDailyPoint"},"type":"array","title":"Daily"},"ingestion":{"$ref":"#/components/schemas/UsageIngestion"}},"type":"object","required":["date_from","date_to","total_events","events_by_type","events_by_property","daily","ingestion"],"title":"UsageSummaryResponse"},"ValidateModelRequest":{"properties":{"candidate_model":{"type":"string","title":"Candidate Model"}},"type":"object","required":["candidate_model"],"title":"ValidateModelRequest"},"ValidateModelResponse":{"properties":{"candidate_model":{"type":"string","title":"Candidate Model"},"benchmark_score":{"type":"number","title":"Benchmark Score"},"passed":{"type":"boolean","title":"Passed"},"threshold":{"type":"number","title":"Threshold"},"sample_count":{"type":"integer","title":"Sample Count"},"benchmark_run_id":{"type":"string","title":"Benchmark Run Id"},"recommended_action":{"type":"string","title":"Recommended Action"}},"type":"object","required":["candidate_model","benchmark_score","passed","threshold","sample_count","benchmark_run_id","recommended_action"],"title":"ValidateModelResponse"},"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"},"WeaponPreference":{"type":"string","enum":["rifle","compound_bow","recurve_bow","crossbow","muzzleloader","other"],"title":"WeaponPreference","description":"Hunter CRM weapon preference. Shares values with\n``MethodOfTake`` today but kept separate on purpose — a preference\nis a wish, a method-of-take is the recorded fact, and the two will\ndrift (e.g. CRM may grow ``traditional_bow`` while the harvest-\nrecord method enum stays aligned with state-DNR enumerations)."},"WeatherAtCapture":{"properties":{"available":{"type":"boolean","title":"Available","default":false},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"conditions_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conditions Text"},"temp_f":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temp F"},"wind_dir":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wind Dir"},"wind_mph":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Wind Mph"},"pressure_inhg":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pressure Inhg"},"pressure_trend":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pressure Trend"},"moon_phase":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Moon Phase"}},"type":"object","title":"WeatherAtCapture","description":"Self-describing weather context for the detail panel (ruling B1-a). Never a\nbare null — the FE always renders the block and reads ``reason`` to explain\nabsence. ``available`` reports whether STRUCTURED live weather is present; it\nstays False until workstream B6 wires the real Open-Meteo lookup. ``reason``\ndistinguishes an unlocated camera (\"camera_not_located\") from a located-but-not-\nyet-computed one (\"not_computed\"). ``conditions_text`` is the interim AI-derived\nsummary (image-based, so present regardless of camera location) per ruling D3(ii)."},"WeatherConditionCorrelation":{"properties":{"condition":{"type":"string","title":"Condition"},"sighting_count":{"type":"integer","title":"Sighting Count"},"avg_confidence":{"type":"number","title":"Avg Confidence"},"pct_of_total":{"type":"number","title":"Pct Of Total"}},"type":"object","required":["condition","sighting_count","avg_confidence","pct_of_total"],"title":"WeatherConditionCorrelation"},"WeatherConditions":{"properties":{"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"temperature_f":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature F"},"wind_speed_mph":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Wind Speed Mph"},"wind_direction_deg":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Wind Direction Deg"},"pressure_hpa":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pressure Hpa"},"precipitation_probability":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Precipitation Probability"},"cloud_cover":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cloud Cover"},"moon_phase":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Moon Phase"},"weather_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Weather Code"},"condition_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Condition Label"},"condition_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Condition Slug"}},"type":"object","required":["timestamp"],"title":"WeatherConditions","description":"One hourly sample. Optional fields may be ``None`` when the\nprovider can't supply them."},"WeatherCorrelationResponse":{"properties":{"species":{"type":"string","title":"Species"},"days":{"type":"integer","title":"Days"},"total_sightings":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Sightings"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"location":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Location"},"by_condition":{"items":{"$ref":"#/components/schemas/WeatherConditionCorrelation"},"type":"array","title":"By Condition","default":[]},"by_temperature":{"items":{"$ref":"#/components/schemas/WeatherConditionCorrelation"},"type":"array","title":"By Temperature","default":[]},"by_wind":{"items":{"$ref":"#/components/schemas/WeatherConditionCorrelation"},"type":"array","title":"By Wind","default":[]},"by_precipitation":{"items":{"$ref":"#/components/schemas/WeatherConditionCorrelation"},"type":"array","title":"By Precipitation","default":[]}},"type":"object","required":["species","days"],"title":"WeatherCorrelationResponse"},"WeatherResponse":{"properties":{"property_id":{"type":"string","title":"Property Id"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"hours_ahead":{"type":"integer","title":"Hours Ahead"},"current":{"anyOf":[{"$ref":"#/components/schemas/WeatherConditions"},{"type":"null"}]},"hourly":{"items":{"$ref":"#/components/schemas/WeatherConditions"},"type":"array","title":"Hourly"},"days":{"items":{"$ref":"#/components/schemas/DailyForecast"},"type":"array","title":"Days"}},"type":"object","required":["property_id","generated_at","hours_ahead","current","hourly","days"],"title":"WeatherResponse"},"WebhookTestRequest":{"properties":{"payload_type":{"type":"string","enum":["health_warning","security_alert","support_ticket","test_ping"],"title":"Payload Type","default":"test_ping"}},"type":"object","title":"WebhookTestRequest","description":"Body for ``POST /admin/dev/webhook-test``.\n\nMirrors :meth:`AdminAlertService.test_webhook`'s ``payload_type``\nkeyword (default ``health_warning`` server-side, but the schema\nrequires explicit choice from the dev tool to make the intent\nobvious in the audit log)."},"WebhookTestResponse":{"properties":{"payload_type":{"type":"string","enum":["health_warning","security_alert","support_ticket","test_ping"],"title":"Payload Type"},"status_code":{"type":"integer","title":"Status Code"},"body":{"type":"string","title":"Body"},"tested_at":{"type":"string","format":"date-time","title":"Tested At"}},"type":"object","required":["payload_type","status_code","body","tested_at"],"title":"WebhookTestResponse","description":"``POST /admin/dev/webhook-test`` — raw Teams API response.\n\nShape matches :meth:`AdminAlertService.test_webhook` directly:\n``status_code=0`` indicates the test itself raised before\nhitting the upstream (e.g. webhook URL not configured)."},"WeekendBriefingCreateResponse":{"properties":{"report_id":{"type":"string","title":"Report Id"},"status":{"$ref":"#/components/schemas/ReportStatus"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["report_id","status","created_at"],"title":"WeekendBriefingCreateResponse","description":"Echo of the created Report row. Same shape as\n:class:`app.schemas.pro.ReportCreateResponse` so the frontend\ncan reuse its existing polling component for the new report\nvariant."},"WeekendBriefingRequest":{"properties":{"date_from":{"type":"string","format":"date","title":"Date From"},"date_to":{"type":"string","format":"date","title":"Date To"},"guide_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Guide Ids","description":"Restrict to sessions assigned to these guides. ``null`` means 'all guides with sessions in the window'. An explicit empty list is rejected with 422."},"title":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Title"},"branding":{"anyOf":[{"$ref":"#/components/schemas/ReportBranding"},{"type":"null"}]},"recipient_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Recipient Name"},"recipient_email":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Recipient Email"}},"type":"object","required":["date_from","date_to"],"title":"WeekendBriefingRequest","description":"Body for ``POST /api/v1/reports/weekend-briefing``.\n\nFields mirror the eventual ``Report.parameters`` JSON shape so\nthe Celery worker (which loads the row and re-reads parameters)\nsees identical keys regardless of whether the row was created via\nthis endpoint or seeded directly in a test."},"ZipUploadPartsRequest":{"properties":{"batch_id":{"type":"string","title":"Batch Id"},"upload_id":{"type":"string","title":"Upload Id"},"start_part":{"type":"integer","minimum":1.0,"title":"Start Part","description":"First part number to presign (>= 1)."},"count":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Count","description":"How many consecutive parts to presign (1..50)."}},"type":"object","required":["batch_id","upload_id","start_part","count"],"title":"ZipUploadPartsRequest"},"ZipUploadPartsResponse":{"properties":{"part_urls":{"items":{"$ref":"#/components/schemas/InitZipUploadPartUrl"},"type":"array","title":"Part Urls"},"expires_in_seconds":{"type":"integer","title":"Expires In Seconds"}},"type":"object","required":["part_urls","expires_in_seconds"],"title":"ZipUploadPartsResponse"},"_AdminReplyRequest":{"properties":{"body":{"type":"string","maxLength":10000,"minLength":1,"title":"Body"}},"type":"object","required":["body"],"title":"_AdminReplyRequest"},"_AdminTicket":{"properties":{"id":{"type":"string","title":"Id"},"profile_id":{"type":"string","title":"Profile Id"},"subject":{"type":"string","title":"Subject"},"category":{"type":"string","title":"Category"},"priority":{"type":"string","title":"Priority"},"status":{"type":"string","title":"Status"},"first_response_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Response At"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"closed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Closed At"},"last_activity_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Activity At"},"assigned_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned To"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"message_count":{"type":"integer","title":"Message Count","default":0}},"type":"object","required":["id","profile_id","subject","category","priority","status","created_at","updated_at"],"title":"_AdminTicket"},"_AdminTicketDetail":{"properties":{"id":{"type":"string","title":"Id"},"profile_id":{"type":"string","title":"Profile Id"},"subject":{"type":"string","title":"Subject"},"category":{"type":"string","title":"Category"},"priority":{"type":"string","title":"Priority"},"status":{"type":"string","title":"Status"},"first_response_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Response At"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"closed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Closed At"},"last_activity_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Activity At"},"assigned_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned To"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"message_count":{"type":"integer","title":"Message Count","default":0},"messages":{"items":{"$ref":"#/components/schemas/_AdminTicketMessage"},"type":"array","title":"Messages","default":[]}},"type":"object","required":["id","profile_id","subject","category","priority","status","created_at","updated_at"],"title":"_AdminTicketDetail"},"_AdminTicketList":{"properties":{"tickets":{"items":{"$ref":"#/components/schemas/_AdminTicket"},"type":"array","title":"Tickets"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["tickets","total"],"title":"_AdminTicketList"},"_AdminTicketMessage":{"properties":{"id":{"type":"string","title":"Id"},"author_id":{"type":"string","title":"Author Id"},"author_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Name"},"body":{"type":"string","title":"Body"},"is_admin_reply":{"type":"boolean","title":"Is Admin Reply"},"is_system_message":{"type":"boolean","title":"Is System Message"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","author_id","body","is_admin_reply","is_system_message","created_at"],"title":"_AdminTicketMessage"},"_AdminUpdateTicket":{"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"},"assigned_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned To"}},"type":"object","title":"_AdminUpdateTicket","description":"Per Conflict 1 ruling, admin patch covers status + priority.\n``assigned_to`` is included to match the legacy surface; the spec\nlisted only status/priority, but operators need assignment too."},"_AuditLogResponse":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/_AuditLogRow"},"type":"array","title":"Entries"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["entries","total"],"title":"_AuditLogResponse"},"_AuditLogRow":{"properties":{"id":{"type":"integer","title":"Id"},"profile_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Id"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"action":{"type":"string","title":"Action"},"resource_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Type"},"resource_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Id"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"ip_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip Hash"},"user_agent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Agent"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","profile_id","organization_id","action","resource_type","resource_id","status","ip_hash","user_agent","created_at"],"title":"_AuditLogRow"},"_BatchThresholdUpdate":{"properties":{"updates":{"additionalProperties":{"$ref":"#/components/schemas/AlertThresholdUpdate"},"type":"object","title":"Updates"}},"type":"object","required":["updates"],"title":"_BatchThresholdUpdate","description":"Batch PATCH body: ``{ \"<metric_key>\": {warning, critical, window_hours} }``."},"_BriefingBestWindow":{"properties":{"score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Score"},"grade":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grade"},"primary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary"},"secondary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secondary"}},"type":"object","title":"_BriefingBestWindow"},"_BriefingDetections":{"properties":{"last_48hr":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last 48Hr"},"baseline_30d":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Baseline 30D"},"trend_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Trend Pct"}},"type":"object","title":"_BriefingDetections"},"_BriefingGuideNote":{"properties":{"body":{"type":"string","title":"Body"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["body","created_at"],"title":"_BriefingGuideNote"},"_BriefingHitListTarget":{"properties":{"photo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Photo Url"},"species":{"type":"string","title":"Species"},"classification":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Classification"},"antler_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Antler Score"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At"}},"type":"object","required":["species"],"title":"_BriefingHitListTarget"},"_BriefingMoon":{"properties":{"phase":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phase"},"illumination_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Illumination Pct"}},"type":"object","title":"_BriefingMoon"},"_BriefingRut":{"properties":{"phase":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phase"},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score"}},"type":"object","title":"_BriefingRut"},"_BriefingSpeciesEntry":{"properties":{"species":{"type":"string","title":"Species"},"pct":{"type":"number","title":"Pct"}},"type":"object","required":["species","pct"],"title":"_BriefingSpeciesEntry"},"_BriefingStand":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"heading":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Heading"},"active_hazards":{"items":{"type":"string"},"type":"array","title":"Active Hazards"}},"type":"object","title":"_BriefingStand"},"_BriefingWeather":{"properties":{"temp_f":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temp F"},"trend":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trend"},"wind_speed":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Wind Speed"},"wind_dir":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wind Dir"},"wind_vs_heading":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wind Vs Heading"},"pressure_trend":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pressure Trend"}},"type":"object","title":"_BriefingWeather"},"_CachedBriefingResponse":{"properties":{"briefing":{"$ref":"#/components/schemas/BriefingResponse"},"version":{"type":"integer","title":"Version"},"generated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Generated At"},"is_fresh":{"type":"boolean","title":"Is Fresh"}},"type":"object","required":["briefing","version","generated_at","is_fresh"],"title":"_CachedBriefingResponse","description":"Read-side payload for ``GET /sessions/{id}/briefing``.\n\nMirrors :class:`_GenerateBriefingResponse` minus ``was_cached`` — on a\npure read that flag is definitionally True and carries no information.\nIn its place we surface the two row-level facts the surface needs in\norder to be honest about the briefing's age: when it was written, and\nwhether it is still inside the freshness window.\n\nPer ruling RL306-5, ``is_fresh`` is a DISPLAY signal — false means\n\"render a not-fresh badge\", never \"silently POST a regenerate\"."},"_CreditRequest":{"properties":{"amount_cents":{"type":"integer","exclusiveMinimum":0.0,"title":"Amount Cents","description":"Credit amount in cents (positive)"},"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"}},"type":"object","required":["amount_cents","reason"],"title":"_CreditRequest"},"_DsarAdminPatch":{"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"denial_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Denial Reason"},"response_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Url"}},"type":"object","title":"_DsarAdminPatch","description":"PATCH body — same fields as the legacy POST body for\ncompatibility. Routes accept either; the canonical method is\nPATCH per the spec ruling."},"_DsarFulfillResponse":{"properties":{"dsar_id":{"type":"string","title":"Dsar Id"},"request_type":{"type":"string","title":"Request Type"},"automated":{"type":"boolean","title":"Automated"},"response_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Url"},"new_status":{"type":"string","title":"New Status"},"message":{"type":"string","title":"Message"}},"type":"object","required":["dsar_id","request_type","automated","new_status","message"],"title":"_DsarFulfillResponse"},"_GenerateBriefingBody":{"properties":{"force":{"type":"boolean","title":"Force","default":false}},"type":"object","title":"_GenerateBriefingBody","description":"Inline body schema — small enough that pulling it out into\n``app/schemas/hunt_session.py`` would be overkill, but visible\nhere so the OpenAPI doc renders it. ``force`` defaults to False\nso the cached briefing wins inside the 3h freshness window."},"_GenerateBriefingResponse":{"properties":{"briefing":{"$ref":"#/components/schemas/BriefingResponse"},"was_cached":{"type":"boolean","title":"Was Cached"},"version":{"type":"integer","title":"Version"}},"type":"object","required":["briefing","was_cached","version"],"title":"_GenerateBriefingResponse"},"_IpLogResponse":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/_IpLogRow"},"type":"array","title":"Entries"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["entries","total"],"title":"_IpLogResponse"},"_IpLogRow":{"properties":{"ip_hash":{"type":"string","title":"Ip Hash"},"first_seen":{"type":"string","format":"date-time","title":"First Seen"},"last_seen":{"type":"string","format":"date-time","title":"Last Seen"},"event_count":{"type":"integer","title":"Event Count"},"sample_profile_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sample Profile Id"},"source":{"type":"string","title":"Source"}},"type":"object","required":["ip_hash","first_seen","last_seen","event_count","source"],"title":"_IpLogRow"},"_RefundRequest":{"properties":{"payment_intent_id":{"type":"string","minLength":1,"title":"Payment Intent Id"},"amount_cents":{"type":"integer","exclusiveMinimum":0.0,"title":"Amount Cents"},"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"}},"type":"object","required":["payment_intent_id","amount_cents","reason"],"title":"_RefundRequest"},"_ResetPasswordResponse":{"properties":{"ticket_id":{"type":"string","title":"Ticket Id"},"profile_id":{"type":"string","title":"Profile Id"},"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"},"must_change_password":{"type":"boolean","title":"Must Change Password","default":true}},"type":"object","required":["ticket_id","profile_id","email","password"],"title":"_ResetPasswordResponse"},"_RetryJobRequest":{"properties":{"task_id":{"type":"string","maxLength":255,"minLength":1,"title":"Task Id"}},"type":"object","required":["task_id"],"title":"_RetryJobRequest","description":"Loose link between a Ticket and a DLQ entry — Conflict 4 ruling.\nNo schema enforcement; operator pulls the task_id from the ticket\ncontext (body, attachments, or related notes)."},"_RetryJobResponse":{"properties":{"ticket_id":{"type":"string","title":"Ticket Id"},"task_id":{"type":"string","title":"Task Id"},"replayed":{"type":"boolean","title":"Replayed"}},"type":"object","required":["ticket_id","task_id","replayed"],"title":"_RetryJobResponse"},"_RevokeSessionResponse":{"properties":{"session_id":{"type":"string","title":"Session Id"},"profile_id":{"type":"string","title":"Profile Id"},"revoked_at":{"type":"string","format":"date-time","title":"Revoked At"},"already_revoked":{"type":"boolean","title":"Already Revoked","default":false}},"type":"object","required":["session_id","profile_id","revoked_at"],"title":"_RevokeSessionResponse"},"_SessionListResponse":{"properties":{"sessions":{"items":{"$ref":"#/components/schemas/_SessionRow"},"type":"array","title":"Sessions"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["sessions","total"],"title":"_SessionListResponse"},"_SessionRow":{"properties":{"id":{"type":"string","title":"Id"},"profile_id":{"type":"string","title":"Profile Id"},"organization_id":{"type":"string","title":"Organization Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_active_at":{"type":"string","format":"date-time","title":"Last Active At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"ip_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip Hash"},"user_agent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Agent"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["id","profile_id","organization_id","created_at","last_active_at","is_active"],"title":"_SessionRow"},"_TierChangeRequest":{"properties":{"new_tier":{"type":"string","minLength":1,"title":"New Tier"}},"type":"object","required":["new_tier"],"title":"_TierChangeRequest"},"app__routers__fingerprints__GenerateRequest":{"properties":{"species_taxon_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species Taxon Id"},"lookback_days":{"type":"integer","maximum":365.0,"minimum":30.0,"title":"Lookback Days","default":90}},"type":"object","title":"GenerateRequest"},"app__routers__forecasts__GenerateRequest":{"properties":{"property_id":{"type":"string","format":"uuid","title":"Property Id"},"species_taxon_id":{"type":"string","title":"Species Taxon Id"},"forecast_horizon_hours":{"type":"integer","maximum":168.0,"minimum":1.0,"title":"Forecast Horizon Hours","default":48}},"type":"object","required":["property_id","species_taxon_id"],"title":"GenerateRequest"},"app__routers__habitat_pressure__RecomputeRequest":{"properties":{"property_id":{"type":"string","title":"Property Id"},"lookback_days":{"type":"integer","maximum":365.0,"minimum":30.0,"title":"Lookback Days","default":180}},"type":"object","required":["property_id"],"title":"RecomputeRequest"},"app__routers__long_range_forecasts__GenerateRequest":{"properties":{"property_id":{"type":"string","title":"Property Id"},"species_taxon_id":{"type":"string","title":"Species Taxon Id"},"horizon_days":{"type":"integer","maximum":14.0,"minimum":7.0,"title":"Horizon Days","default":14}},"type":"object","required":["property_id","species_taxon_id"],"title":"GenerateRequest"},"app__routers__patterns__RecomputeRequest":{"properties":{"property_id":{"type":"string","format":"uuid","title":"Property Id"},"species_taxon_id":{"type":"string","title":"Species Taxon Id"},"lookback_days":{"type":"integer","maximum":1825.0,"minimum":7.0,"title":"Lookback Days","default":365}},"type":"object","required":["property_id","species_taxon_id"],"title":"RecomputeRequest"},"app__routers__stands__StandResponse":{"properties":{"id":{"type":"string","title":"Id"},"profile_id":{"type":"string","title":"Profile Id"},"property_id":{"type":"string","title":"Property Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"latitude":{"type":"number","title":"Latitude"},"longitude":{"type":"number","title":"Longitude"},"primary_habitat":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Habitat"},"access_difficulty":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Difficulty"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"prevailing_wind_safe_directions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Prevailing Wind Safe Directions"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","profile_id","property_id","name","description","latitude","longitude","primary_habitat","access_difficulty","notes","prevailing_wind_safe_directions","created_at"],"title":"StandResponse"},"app__schemas__asset__HeatmapResponse":{"properties":{"species":{"type":"string","title":"Species"},"data":{"items":{"$ref":"#/components/schemas/HeatmapPoint"},"type":"array","title":"Data"},"source":{"type":"string","enum":["wildlife_pipeline","predator_sightings"],"title":"Source"}},"type":"object","required":["species","data","source"],"title":"HeatmapResponse"},"app__schemas__common__ApiResponse_StandResponse___1":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/app__schemas__stand__StandResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[StandResponse]"},"app__schemas__common__ApiResponse_StandResponse___2":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/app__routers__stands__StandResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[StandResponse]"},"app__schemas__common__ApiResponse_list_MemberResponse____1":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/app__schemas__org_settings__MemberResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[MemberResponse]]"},"app__schemas__common__ApiResponse_list_MemberResponse____2":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/app__schemas__property__MemberResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","default":{}},"errors":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"ApiResponse[list[MemberResponse]]"},"app__schemas__org_settings__MemberResponse":{"properties":{"profile_id":{"type":"string","title":"Profile Id"},"organization_id":{"type":"string","title":"Organization Id"},"email":{"type":"string","title":"Email"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"role":{"$ref":"#/components/schemas/OrganizationRole"},"joined_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Joined At"},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At"},"is_founder":{"type":"boolean","title":"Is Founder","default":false}},"type":"object","required":["profile_id","organization_id","email","role"],"title":"MemberResponse"},"app__schemas__pro__HeatmapResponse":{"properties":{"property_id":{"type":"string","title":"Property Id"},"clusters":{"items":{"$ref":"#/components/schemas/HeatmapCluster"},"type":"array","title":"Clusters"},"precision":{"type":"number","title":"Precision"},"species":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species"},"time_of_day":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Time Of Day"},"date_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date From"},"date_to":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date To"},"total_points":{"type":"integer","title":"Total Points"},"max_count":{"type":"integer","title":"Max Count"},"bbox":{"anyOf":[{"$ref":"#/components/schemas/HeatmapBBox"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/HeatmapMeta"},{"type":"null"}]}},"type":"object","required":["property_id","clusters","precision","total_points","max_count"],"title":"HeatmapResponse"},"app__schemas__property__MemberResponse":{"properties":{"profile_id":{"type":"string","title":"Profile Id"},"email":{"type":"string","title":"Email"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"role":{"$ref":"#/components/schemas/PropertyRole"},"joined_at":{"type":"string","format":"date-time","title":"Joined At"}},"type":"object","required":["profile_id","email","full_name","role","joined_at"],"title":"MemberResponse"},"app__schemas__stand__StandResponse":{"properties":{"id":{"type":"string","title":"Id"},"profile_id":{"type":"string","title":"Profile Id"},"property_id":{"type":"string","title":"Property Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"latitude":{"type":"number","title":"Latitude"},"longitude":{"type":"number","title":"Longitude"},"stand_type":{"anyOf":[{"$ref":"#/components/schemas/StandType"},{"type":"null"}]},"location_type":{"anyOf":[{"$ref":"#/components/schemas/LocationType"},{"type":"null"}]},"status":{"anyOf":[{"$ref":"#/components/schemas/StandStatus"},{"type":"null"}]},"capacity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Capacity"},"camera_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Id"},"heading":{"anyOf":[{"$ref":"#/components/schemas/CameraHeading"},{"type":"null"}]},"primary_habitat":{"anyOf":[{"$ref":"#/components/schemas/StandHabitat"},{"type":"null"}]},"access_difficulty":{"anyOf":[{"$ref":"#/components/schemas/StandAccessDifficulty"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"prevailing_wind_safe_directions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Prevailing Wind Safe Directions"},"best_window_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Best Window Score"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","profile_id","property_id","name","description","latitude","longitude","notes","created_at","updated_at"],"title":"StandResponse"}}}}