{"openapi":"3.1.0","info":{"title":"Mininode API","version":"0.1.0"},"paths":{"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"summary":"Root Get","operationId":"root_get__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"head":{"summary":"Root Head","operationId":"root_head__head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/check":{"get":{"summary":"Auth Check","operationId":"auth_check_auth_check_get","parameters":[{"name":"X-Api-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"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"}}}}}}},"/access/me":{"get":{"tags":["access"],"summary":"Access Me","operationId":"access_me_access_me_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Cf-Access-Jwt-Assertion","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Access-Jwt-Assertion"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessMeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/access/onboarding":{"post":{"tags":["access"],"summary":"Access Onboarding","operationId":"access_onboarding_access_onboarding_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Cf-Access-Jwt-Assertion","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Access-Jwt-Assertion"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessOnboardingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/access/workspaces/{workspace_id}/sites":{"post":{"tags":["access"],"summary":"Access Follow Site","operationId":"access_follow_site_access_workspaces__workspace_id__sites_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Cf-Access-Jwt-Assertion","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Access-Jwt-Assertion"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessFollowSiteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessFollowSiteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/access/workspaces/{workspace_id}/site-group-reviews":{"post":{"tags":["access"],"summary":"Access Request Site Group Review","operationId":"access_request_site_group_review_access_workspaces__workspace_id__site_group_reviews_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Cf-Access-Jwt-Assertion","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Access-Jwt-Assertion"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteGroupReviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteGroupReviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["access"],"summary":"Access List Site Group Reviews","operationId":"access_list_site_group_reviews_access_workspaces__workspace_id__site_group_reviews_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Cf-Access-Jwt-Assertion","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Access-Jwt-Assertion"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteGroupReviewListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/access/operator/site-group-reviews":{"get":{"tags":["access"],"summary":"Access Operator Site Group Reviews","operationId":"access_operator_site_group_reviews_access_operator_site_group_reviews_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Cf-Access-Jwt-Assertion","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Access-Jwt-Assertion"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteGroupOperatorListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/access/operator/site-group-reviews/{review_id}/decision":{"post":{"tags":["access"],"summary":"Access Operator Decide Site Group Review","operationId":"access_operator_decide_site_group_review_access_operator_site_group_reviews__review_id__decision_post","parameters":[{"name":"review_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Review Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Cf-Access-Jwt-Assertion","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Access-Jwt-Assertion"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteGroupDecisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteGroupDecisionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/access/context":{"get":{"tags":["access"],"summary":"Access Context","operationId":"access_context_access_context_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Cf-Access-Jwt-Assertion","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Access-Jwt-Assertion"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessContextResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/access/workspaces/{workspace_id}/sites/{workspace_site_id}":{"delete":{"tags":["access"],"summary":"Access Unlink Site","operationId":"access_unlink_site_access_workspaces__workspace_id__sites__workspace_site_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"workspace_site_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Site Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Cf-Access-Jwt-Assertion","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Access-Jwt-Assertion"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/access/workspaces/{workspace_id}/sites/{workspace_site_id}/unlink":{"post":{"tags":["access"],"summary":"Access Unlink Site","operationId":"access_unlink_site_access_workspaces__workspace_id__sites__workspace_site_id__unlink_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"workspace_site_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Site Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Cf-Access-Jwt-Assertion","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Access-Jwt-Assertion"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/access/operator/grants/overview":{"get":{"tags":["access"],"summary":"Operator Grants Overview","operationId":"operator_grants_overview_access_operator_grants_overview_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Cf-Access-Jwt-Assertion","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Access-Jwt-Assertion"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/access/operator/grant-sites":{"get":{"tags":["access"],"summary":"Operator Grant Sites","operationId":"operator_grant_sites_access_operator_grant_sites_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","title":"Q"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Cf-Access-Jwt-Assertion","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Access-Jwt-Assertion"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/access/operator/grant-sites/{workspace_site_id}":{"get":{"tags":["access"],"summary":"Operator Grant History","operationId":"operator_grant_history_access_operator_grant_sites__workspace_site_id__get","parameters":[{"name":"workspace_site_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Site Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Cf-Access-Jwt-Assertion","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Access-Jwt-Assertion"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/access/operator/grants":{"post":{"tags":["access"],"summary":"Operator Create Grant","operationId":"operator_create_grant_access_operator_grants_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Cf-Access-Jwt-Assertion","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Access-Jwt-Assertion"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminGrantRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/access/operator/grants/{entitlement_id}/revoke":{"post":{"tags":["access"],"summary":"Operator Revoke Grant","operationId":"operator_revoke_grant_access_operator_grants__entitlement_id__revoke_post","parameters":[{"name":"entitlement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Entitlement Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Cf-Access-Jwt-Assertion","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Access-Jwt-Assertion"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRevokeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/orders":{"post":{"tags":["billing"],"summary":"Create Order","operationId":"create_order_billing_orders_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Cf-Access-Jwt-Assertion","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Access-Jwt-Assertion"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/orders/{order_id}":{"get":{"tags":["billing"],"summary":"Get Order","operationId":"get_order_billing_orders__order_id__get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Cf-Access-Jwt-Assertion","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Access-Jwt-Assertion"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/sites/{workspace_site_id}/entitlement":{"get":{"tags":["billing"],"summary":"Entitlement","operationId":"entitlement_billing_sites__workspace_site_id__entitlement_get","parameters":[{"name":"workspace_site_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Site Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Cf-Access-Jwt-Assertion","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Access-Jwt-Assertion"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntitlementResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/workspaces/{workspace_id}/entitlements":{"get":{"tags":["billing"],"summary":"Workspace Entitlements","operationId":"workspace_entitlements_billing_workspaces__workspace_id__entitlements_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Cf-Access-Jwt-Assertion","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Access-Jwt-Assertion"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceEntitlementsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/write/draft":{"post":{"tags":["Write"],"summary":"Write Draft","operationId":"write_draft_write_draft_post","parameters":[{"name":"debug","in":"query","required":false,"schema":{"type":"integer","description":"Set 1 para ver errores","default":0,"title":"Debug"},"description":"Set 1 para ver errores"},{"name":"X-Api-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftReq"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftResp"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/capture":{"post":{"tags":["Capture"],"summary":"Capture Endpoint","operationId":"capture_endpoint_capture_post","parameters":[{"name":"doc_type","in":"query","required":true,"schema":{"type":"string","title":"Doc Type"}},{"name":"usar_fallback","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Usar Fallback"}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","default":"normal","title":"Mode"}},{"name":"X-Api-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_capture_endpoint_capture_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptureResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/files/upload":{"post":{"tags":["files"],"summary":"Upload File","operationId":"upload_file_files_upload_post","parameters":[{"name":"x_api_key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Api Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_file_files_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_UploadOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/image/optimize":{"post":{"tags":["image"],"summary":"Optimize Image","description":"MVP: copia uploads/ → optimized/ y reporta métricas (hash, size, delta).\nComentario: aunque hoy algunas 'ops' sean no-op, el contrato ya reporta el aporte.","operationId":"optimize_image_image_optimize_post","parameters":[{"name":"x_api_key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Api Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptimizeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_OptimizeOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pipeline/flows":{"get":{"tags":["pipeline"],"summary":"List Flows","operationId":"list_flows_pipeline_flows_get","parameters":[{"name":"x_api_key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Api Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseFlows"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pipeline/flow/{flow_name}":{"post":{"tags":["pipeline"],"summary":"Run Flow","operationId":"run_flow_pipeline_flow__flow_name__post","parameters":[{"name":"flow_name","in":"path","required":true,"schema":{"type":"string","title":"Flow Name"}},{"name":"x_api_key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Api Key"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_run_flow_pipeline_flow__flow_name__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponsePipeline"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/workspace-sites/{workspace_site_id}/latest-review":{"get":{"tags":["Privacy"],"summary":"Get Latest Workspace Site Review","operationId":"get_latest_workspace_site_review_privacy_workspace_sites__workspace_site_id__latest_review_get","parameters":[{"name":"workspace_site_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Site Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Cf-Access-Jwt-Assertion","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Access-Jwt-Assertion"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/workspace-sites/{workspace_site_id}/prepare-activation":{"post":{"tags":["Privacy"],"summary":"Prepare Workspace Site Activation","description":"Re-use a recent saved diagnosis; safely refresh an older one before checkout.\n\nThis preparation does not create orders, entitlements or payments.\nThe original saved diagnosis is retained even when a refresh fails.","operationId":"prepare_workspace_site_activation_privacy_workspace_sites__workspace_site_id__prepare_activation_post","parameters":[{"name":"workspace_site_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Site Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Cf-Access-Jwt-Assertion","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Access-Jwt-Assertion"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/workspaces/{workspace_id}/latest-reviews":{"get":{"tags":["Privacy"],"summary":"List Workspace Latest Reviews","operationId":"list_workspace_latest_reviews_privacy_workspaces__workspace_id__latest_reviews_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Cf-Access-Jwt-Assertion","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Access-Jwt-Assertion"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/workspace-sites/{workspace_site_id}/diagnose":{"post":{"tags":["Privacy"],"summary":"Diagnose Workspace Site","operationId":"diagnose_workspace_site_privacy_workspace_sites__workspace_site_id__diagnose_post","parameters":[{"name":"workspace_site_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Site Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Cf-Access-Jwt-Assertion","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Access-Jwt-Assertion"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/workspaces/{workspace_id}/diagnose":{"post":{"tags":["Privacy"],"summary":"Diagnose Workspace Url","description":"Diagnose a URL and associate the successful review with an authorized workspace.","operationId":"diagnose_workspace_url_privacy_workspaces__workspace_id__diagnose_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Cf-Access-Jwt-Assertion","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Access-Jwt-Assertion"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivacyDiagnosticRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/diagnostic-claims":{"post":{"tags":["Privacy"],"summary":"Claim Diagnostic","operationId":"claim_diagnostic_privacy_diagnostic_claims_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Cf-Access-Jwt-Assertion","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Access-Jwt-Assertion"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimAnonymousDiagnosticRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimedDiagnosticResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/diagnose":{"post":{"tags":["Privacy"],"summary":"Diagnose Privacy","operationId":"diagnose_privacy_privacy_diagnose_post","parameters":[{"name":"X-Mininode-Diagnostics","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mininode-Diagnostics"}},{"name":"X-Api-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivacyDiagnosticRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/workspace-sites/{workspace_site_id}/plan":{"post":{"tags":["Privacy Web"],"summary":"Ensure Plan","operationId":"ensure_plan_privacy_workspace_sites__workspace_site_id__plan_post","parameters":[{"name":"workspace_site_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Site Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Cf-Access-Jwt-Assertion","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Access-Jwt-Assertion"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Privacy Web"],"summary":"Get Plan","operationId":"get_plan_privacy_workspace_sites__workspace_site_id__plan_get","parameters":[{"name":"workspace_site_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Site Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Cf-Access-Jwt-Assertion","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Access-Jwt-Assertion"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/workspace-sites/{workspace_site_id}/diagnostics/previous":{"get":{"tags":["Privacy Web"],"summary":"Previous Diagnostics","operationId":"previous_diagnostics_privacy_workspace_sites__workspace_site_id__diagnostics_previous_get","parameters":[{"name":"workspace_site_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Site Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Cf-Access-Jwt-Assertion","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Access-Jwt-Assertion"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/workspace-sites/{workspace_site_id}/plan/check":{"post":{"tags":["Privacy Web"],"summary":"Review Plan","operationId":"review_plan_privacy_workspace_sites__workspace_site_id__plan_check_post","parameters":[{"name":"workspace_site_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Site Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Cf-Access-Jwt-Assertion","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf-Access-Jwt-Assertion"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/data/catalog":{"get":{"tags":["Privacy Data"],"summary":"Catalog","operationId":"catalog_privacy_data_catalog_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/privacy/data/maps":{"post":{"tags":["Privacy Data"],"summary":"Create Map","operationId":"create_map_privacy_data_maps_post","responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedDataMapResponse"}}}}}}},"/privacy/data/maps/{token}":{"get":{"tags":["Privacy Data"],"summary":"Retrieve Map","operationId":"retrieve_map_privacy_data_maps__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/DataMapResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Privacy Data"],"summary":"Patch Map","operationId":"patch_map_privacy_data_maps__token__patch","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataMapUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataMapResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/data/maps/{token}/recovery-link":{"post":{"tags":["Privacy Data"],"summary":"Create Recovery Link","operationId":"create_recovery_link_privacy_data_maps__token__recovery_link_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/data/maps/{token}/review":{"get":{"tags":["Privacy Data"],"summary":"Get Map Review","operationId":"get_map_review_privacy_data_maps__token__review_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MapObservationResponse"},"title":"Response Get Map Review Privacy Data Maps  Token  Review Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/data/maps/{token}/activities":{"get":{"tags":["Privacy Data"],"summary":"Get Activities","operationId":"get_activities_privacy_data_maps__token__activities_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ActivityResponse"},"title":"Response Get Activities Privacy Data Maps  Token  Activities Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Privacy Data"],"summary":"Post Activity","operationId":"post_activity_privacy_data_maps__token__activities_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy/data/maps/{token}/activities/{activity_id}":{"patch":{"tags":["Privacy Data"],"summary":"Patch Activity","operationId":"patch_activity_privacy_data_maps__token__activities__activity_id__patch","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"activity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Activity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Privacy Data"],"summary":"Remove Activity","operationId":"remove_activity_privacy_data_maps__token__activities__activity_id__delete","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"activity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Activity Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/learn/feedback":{"post":{"tags":["Learn"],"summary":"Submit Feedback","operationId":"submit_feedback_learn_feedback_post","parameters":[{"name":"X-Api-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackCreated"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/learn/feedback/{feedback_id}":{"get":{"tags":["Learn"],"summary":"Retrieve Feedback","operationId":"retrieve_feedback_learn_feedback__feedback_id__get","parameters":[{"name":"feedback_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Feedback Id"}},{"name":"X-Api-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackState"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Learn"],"summary":"Amend Feedback","operationId":"amend_feedback_learn_feedback__feedback_id__patch","parameters":[{"name":"feedback_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Feedback Id"}},{"name":"X-Api-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackUpdate"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analyze/summary":{"post":{"tags":["Analyze"],"summary":"Analyze Summary","operationId":"analyze_summary_analyze_summary_post","parameters":[{"name":"X-Api-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummaryIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummaryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AccessContextResponse":{"properties":{"workspaces":{"items":{"$ref":"#/components/schemas/AccessWorkspaceContextResponse"},"type":"array","title":"Workspaces"}},"type":"object","required":["workspaces"],"title":"AccessContextResponse"},"AccessFollowSiteRequest":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"AccessFollowSiteRequest"},"AccessFollowSiteResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"site_id":{"type":"string","format":"uuid","title":"Site Id"},"hostname":{"type":"string","title":"Hostname"}},"type":"object","required":["id","site_id","hostname"],"title":"AccessFollowSiteResponse"},"AccessMeResponse":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"email":{"type":"string","title":"Email"}},"type":"object","required":["user_id","email"],"title":"AccessMeResponse"},"AccessOnboardingResponse":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","title":"Name"},"role":{"type":"string","title":"Role"}},"type":"object","required":["workspace_id","name","role"],"title":"AccessOnboardingResponse"},"AccessSiteContextResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"site_id":{"type":"string","format":"uuid","title":"Site Id"},"hostname":{"type":"string","title":"Hostname"},"company_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Company Id"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"}},"type":"object","required":["id","site_id","hostname","company_id","company_name"],"title":"AccessSiteContextResponse"},"AccessWorkspaceContextResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"role":{"type":"string","title":"Role"},"sites":{"items":{"$ref":"#/components/schemas/AccessSiteContextResponse"},"type":"array","title":"Sites"}},"type":"object","required":["id","name","role","sites"],"title":"AccessWorkspaceContextResponse"},"ActivityAnswers":{"properties":{"people_categories":{"items":{"type":"string"},"type":"array","title":"People Categories"},"may_include_minors":{"anyOf":[{"type":"boolean"},{"type":"string","enum":["unknown"],"const":"unknown"},{"type":"null"}],"title":"May Include Minors"},"personal_data_types":{"items":{"type":"string"},"type":"array","title":"Personal Data Types"},"storage_locations":{"items":{"type":"string"},"type":"array","title":"Storage Locations"},"data_origins":{"items":{"type":"string"},"type":"array","title":"Data Origins"},"data_channels":{"items":{"type":"string"},"type":"array","title":"Data Channels"},"purposes":{"items":{"type":"string"},"type":"array","title":"Purposes"},"access_roles":{"items":{"type":"string"},"type":"array","title":"Access Roles"},"security_measures":{"items":{"type":"string"},"type":"array","title":"Security Measures"},"rights_handling":{"anyOf":[{"type":"string","enum":["defined","case_by_case","none","unknown"]},{"type":"null"}],"title":"Rights Handling"},"has_third_parties":{"anyOf":[{"type":"boolean"},{"type":"string","enum":["unknown"],"const":"unknown"},{"type":"null"}],"title":"Has Third Parties"},"third_parties":{"items":{"$ref":"#/components/schemas/ThirdParty"},"type":"array","title":"Third Parties"},"retention":{"$ref":"#/components/schemas/Retention"}},"additionalProperties":false,"type":"object","title":"ActivityAnswers"},"ActivityCreate":{"properties":{"activity_type":{"type":"string","title":"Activity Type"},"data_context":{"type":"string","enum":["unconfirmed","own_operations","client_service","both"],"title":"Data Context"},"position":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Position"},"answers":{"$ref":"#/components/schemas/ActivityAnswers"}},"additionalProperties":false,"type":"object","required":["activity_type","data_context"],"title":"ActivityCreate"},"ActivityResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"activity_type":{"type":"string","title":"Activity Type"},"data_context":{"type":"string","title":"Data Context"},"position":{"type":"integer","title":"Position"},"answers":{"$ref":"#/components/schemas/ActivityAnswers"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","activity_type","data_context","position","answers","created_at","updated_at"],"title":"ActivityResponse"},"ActivityUpdate":{"properties":{"activity_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Activity Type"},"data_context":{"anyOf":[{"type":"string","enum":["unconfirmed","own_operations","client_service","both"]},{"type":"null"}],"title":"Data Context"},"position":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Position"},"answers":{"anyOf":[{"$ref":"#/components/schemas/ActivityAnswers"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"ActivityUpdate"},"AdminGrantRequest":{"properties":{"workspace_site_id":{"type":"string","format":"uuid","title":"Workspace Site Id"},"days":{"type":"integer","title":"Days","default":30},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["workspace_site_id","reason"],"title":"AdminGrantRequest"},"AdminRevokeRequest":{"properties":{"reason":{"type":"string","title":"Reason"}},"type":"object","required":["reason"],"title":"AdminRevokeRequest"},"ApiResponseFlows":{"properties":{"ok":{"type":"boolean","title":"Ok"},"time_ms":{"type":"integer","title":"Time Ms"},"data":{"anyOf":[{"$ref":"#/components/schemas/FlowsOut"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorObj"},{"type":"null"}]},"meta":{"$ref":"#/components/schemas/MetaObj"}},"type":"object","required":["ok","time_ms","meta"],"title":"ApiResponseFlows"},"ApiResponsePipeline":{"properties":{"ok":{"type":"boolean","title":"Ok"},"time_ms":{"type":"integer","title":"Time Ms"},"data":{"anyOf":[{"$ref":"#/components/schemas/PipelineRunOut"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorObj"},{"type":"null"}]},"meta":{"$ref":"#/components/schemas/MetaObj"}},"type":"object","required":["ok","time_ms","meta"],"title":"ApiResponsePipeline"},"ApiResponse_OptimizeOut_":{"properties":{"ok":{"type":"boolean","title":"Ok"},"time_ms":{"type":"integer","title":"Time Ms"},"data":{"anyOf":[{"$ref":"#/components/schemas/OptimizeOut"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorObj"},{"type":"null"}]},"meta":{"$ref":"#/components/schemas/MetaObj"}},"type":"object","required":["ok","time_ms","meta"],"title":"ApiResponse[OptimizeOut]"},"ApiResponse_UploadOut_":{"properties":{"ok":{"type":"boolean","title":"Ok"},"time_ms":{"type":"integer","title":"Time Ms"},"data":{"anyOf":[{"$ref":"#/components/schemas/UploadOut"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorObj"},{"type":"null"}]},"meta":{"$ref":"#/components/schemas/MetaObj"}},"type":"object","required":["ok","time_ms","meta"],"title":"ApiResponse[UploadOut]"},"Body_capture_endpoint_capture_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_capture_endpoint_capture_post"},"Body_run_flow_pipeline_flow__flow_name__post":{"properties":{"file":{"anyOf":[{"type":"string","format":"binary"},{"type":"null"}],"title":"File"}},"type":"object","title":"Body_run_flow_pipeline_flow__flow_name__post"},"Body_upload_file_files_upload_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_file_files_upload_post"},"CaptureResponse":{"properties":{"doc_type":{"type":"string","enum":["guia","boleta","factura"],"title":"Doc Type"},"fields":{"additionalProperties":{"$ref":"#/components/schemas/FieldOut"},"type":"object","title":"Fields"},"consistency":{"$ref":"#/components/schemas/ConsistencyReport"},"consistency_after_fallback":{"anyOf":[{"$ref":"#/components/schemas/ConsistencyReport"},{"type":"null"}]},"cost":{"$ref":"#/components/schemas/CostBreakdown"},"timings":{"$ref":"#/components/schemas/TimingMs"},"fallback_applied":{"type":"boolean","title":"Fallback Applied","default":false},"adjusted_fields":{"items":{"type":"string"},"type":"array","title":"Adjusted Fields","default":[]},"items":{"items":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object"},"type":"array","title":"Items","default":[]}},"type":"object","required":["doc_type","fields","consistency","cost","timings"],"title":"CaptureResponse"},"ClaimAnonymousDiagnosticRequest":{"properties":{"diagnostic_id":{"type":"string","format":"uuid","title":"Diagnostic Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"claim_token":{"type":"string","maxLength":512,"minLength":32,"title":"Claim Token"}},"additionalProperties":false,"type":"object","required":["diagnostic_id","workspace_id","claim_token"],"title":"ClaimAnonymousDiagnosticRequest"},"ClaimedDiagnosticResponse":{"properties":{"diagnostic_id":{"type":"string","format":"uuid","title":"Diagnostic Id"},"workspace_site_id":{"type":"string","format":"uuid","title":"Workspace Site Id"}},"type":"object","required":["diagnostic_id","workspace_site_id"],"title":"ClaimedDiagnosticResponse"},"ConsistencyReport":{"properties":{"checks":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Checks","default":{}},"notes":{"items":{"type":"string"},"type":"array","title":"Notes","default":[]}},"type":"object","title":"ConsistencyReport"},"CostBreakdown":{"properties":{"tokens":{"additionalProperties":{"type":"integer"},"type":"object","title":"Tokens","default":{}},"usd":{"additionalProperties":{"type":"number"},"type":"object","title":"Usd","default":{}},"total_usd":{"type":"number","title":"Total Usd","default":0.0}},"type":"object","title":"CostBreakdown"},"CreateOrderRequest":{"properties":{"workspace_site_id":{"type":"string","format":"uuid","title":"Workspace Site Id"},"diagnostic_id":{"type":"string","format":"uuid","title":"Diagnostic Id"}},"type":"object","required":["workspace_site_id","diagnostic_id"],"title":"CreateOrderRequest"},"CreatedDataMapResponse":{"properties":{"token":{"type":"string","title":"Token"},"map":{"$ref":"#/components/schemas/DataMapResponse"}},"type":"object","required":["token","map"],"title":"CreatedDataMapResponse"},"DataMapResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","enum":["draft","completed"],"title":"Status"},"industry_profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry Profile"},"business_size":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Size"},"catalog_version":{"type":"string","title":"Catalog Version"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["id","status","industry_profile","business_size","catalog_version","created_at","updated_at","expires_at"],"title":"DataMapResponse"},"DataMapUpdate":{"properties":{"industry_profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry Profile"},"business_size":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Size"}},"additionalProperties":false,"type":"object","title":"DataMapUpdate"},"DraftReq":{"properties":{"prompt":{"type":"string","title":"Prompt"},"tone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tone","default":"simple"}},"type":"object","required":["prompt"],"title":"DraftReq"},"DraftResp":{"properties":{"text":{"type":"string","title":"Text"}},"type":"object","required":["text"],"title":"DraftResp"},"EntitlementResponse":{"properties":{"active":{"type":"boolean","title":"Active"},"active_from":{"anyOf":[{},{"type":"null"}],"title":"Active From"},"active_until":{"anyOf":[{},{"type":"null"}],"title":"Active Until"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},"type":"object","required":["active"],"title":"EntitlementResponse"},"ErrorObj":{"properties":{"code":{"type":"string","title":"Code","examples":["BAD_INPUT","NOT_FOUND","SERVER_ERROR"]},"message":{"type":"string","title":"Message"}},"type":"object","required":["code","message"],"title":"ErrorObj"},"FeedbackCreate":{"properties":{"content_key":{"type":"string","title":"Content Key"},"rating":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"Rating"}},"additionalProperties":false,"type":"object","required":["content_key","rating"],"title":"FeedbackCreate"},"FeedbackCreated":{"properties":{"feedback_id":{"type":"string","format":"uuid","title":"Feedback Id"}},"type":"object","required":["feedback_id"],"title":"FeedbackCreated"},"FeedbackState":{"properties":{"rating":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"Rating"},"topic":{"anyOf":[{"$ref":"#/components/schemas/Topic"},{"type":"null"}]},"comment":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Comment"}},"type":"object","required":["rating","topic","comment"],"title":"FeedbackState"},"FeedbackUpdate":{"properties":{"rating":{"anyOf":[{"type":"integer","maximum":5.0,"minimum":1.0},{"type":"null"}],"title":"Rating"},"topic":{"anyOf":[{"$ref":"#/components/schemas/Topic"},{"type":"null"}]},"comment":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Comment"}},"additionalProperties":false,"type":"object","title":"FeedbackUpdate"},"FieldOut":{"properties":{"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"},"confidence":{"type":"number","title":"Confidence"},"source":{"type":"string","title":"Source"},"uncertain":{"type":"boolean","title":"Uncertain"}},"type":"object","required":["value","confidence","source","uncertain"],"title":"FieldOut"},"FlowsOut":{"properties":{"flows":{"items":{"type":"string"},"type":"array","title":"Flows"}},"type":"object","required":["flows"],"title":"FlowsOut"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"MapObservationResponse":{"properties":{"code":{"type":"string","enum":["D01","D02","D03","D04","D05","D06","D07","D08"],"title":"Code"},"type":{"type":"string","enum":["review","notice"],"title":"Type"},"topic":{"type":"string","title":"Topic"},"action":{"type":"string","title":"Action"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"activity_id":{"type":"string","format":"uuid","title":"Activity Id"},"activity_type":{"type":"string","title":"Activity Type"},"third_party_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Third Party Type"}},"type":"object","required":["code","type","topic","action","title","description","activity_id","activity_type"],"title":"MapObservationResponse"},"MetaObj":{"properties":{"request_id":{"type":"string","title":"Request Id"},"version":{"type":"string","title":"Version"}},"type":"object","required":["request_id","version"],"title":"MetaObj"},"OptimizeIn":{"properties":{"file_id":{"type":"string","title":"File Id"},"ops":{"items":{"type":"string"},"type":"array","title":"Ops","default":[]}},"type":"object","required":["file_id"],"title":"OptimizeIn"},"OptimizeMetrics":{"properties":{"changed":{"type":"boolean","title":"Changed"},"bytes_before":{"type":"integer","title":"Bytes Before"},"bytes_after":{"type":"integer","title":"Bytes After"},"size_delta_pct":{"type":"number","title":"Size Delta Pct"},"sha256_before":{"type":"string","title":"Sha256 Before"},"sha256_after":{"type":"string","title":"Sha256 After"}},"type":"object","required":["changed","bytes_before","bytes_after","size_delta_pct","sha256_before","sha256_after"],"title":"OptimizeMetrics"},"OptimizeOut":{"properties":{"src_file_id":{"type":"string","title":"Src File Id"},"file_id":{"type":"string","title":"File Id"},"ops_requested":{"items":{"type":"string"},"type":"array","title":"Ops Requested"},"ops_applied":{"items":{"type":"string"},"type":"array","title":"Ops Applied"},"metrics":{"anyOf":[{"$ref":"#/components/schemas/OptimizeMetrics"},{"type":"null"}]}},"type":"object","required":["src_file_id","file_id","ops_requested","ops_applied"],"title":"OptimizeOut"},"OrderResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_site_id":{"type":"string","format":"uuid","title":"Workspace Site Id"},"diagnostic_id":{"type":"string","format":"uuid","title":"Diagnostic Id"},"product_code":{"type":"string","title":"Product Code"},"amount":{"type":"integer","title":"Amount"},"currency":{"type":"string","title":"Currency"},"status":{"type":"string","title":"Status"}},"type":"object","required":["id","workspace_site_id","diagnostic_id","product_code","amount","currency","status"],"title":"OrderResponse"},"PipelineRunOut":{"properties":{"steps":{"items":{"$ref":"#/components/schemas/StepResult"},"type":"array","title":"Steps"},"result":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Result"}},"type":"object","required":["steps"],"title":"PipelineRunOut"},"PrivacyDiagnosticRequest":{"properties":{"url":{"type":"string","title":"Url"}},"additionalProperties":false,"type":"object","required":["url"],"title":"PrivacyDiagnosticRequest"},"RecoveryLinkResponse":{"properties":{"recovery_token":{"type":"string","title":"Recovery Token"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["recovery_token","expires_at"],"title":"RecoveryLinkResponse"},"Retention":{"properties":{"status":{"type":"string","enum":["defined","variable","unknown"],"title":"Status","default":"unknown"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"unit":{"anyOf":[{"type":"string","enum":["days","months","years"]},{"type":"null"}],"title":"Unit"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","title":"Retention"},"SiteGroupDecisionRequest":{"properties":{"decision":{"type":"string","title":"Decision"},"note":{"type":"string","title":"Note"}},"type":"object","required":["decision","note"],"title":"SiteGroupDecisionRequest"},"SiteGroupDecisionResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","title":"Status"},"moved_diagnostics":{"type":"integer","title":"Moved Diagnostics"}},"type":"object","required":["id","status","moved_diagnostics"],"title":"SiteGroupDecisionResponse"},"SiteGroupOperatorListResponse":{"properties":{"reviews":{"items":{"type":"object"},"type":"array","title":"Reviews"}},"type":"object","required":["reviews"],"title":"SiteGroupOperatorListResponse"},"SiteGroupReviewListResponse":{"properties":{"reviews":{"items":{"$ref":"#/components/schemas/SiteGroupReviewResponse"},"type":"array","title":"Reviews"}},"type":"object","required":["reviews"],"title":"SiteGroupReviewListResponse"},"SiteGroupReviewRequest":{"properties":{"first_workspace_site_id":{"type":"string","format":"uuid","title":"First Workspace Site Id"},"second_workspace_site_id":{"type":"string","format":"uuid","title":"Second Workspace Site Id"}},"type":"object","required":["first_workspace_site_id","second_workspace_site_id"],"title":"SiteGroupReviewRequest"},"SiteGroupReviewResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"first_workspace_site_id":{"type":"string","format":"uuid","title":"First Workspace Site Id"},"second_workspace_site_id":{"type":"string","format":"uuid","title":"Second Workspace Site Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["id","first_workspace_site_id","second_workspace_site_id","status"],"title":"SiteGroupReviewResponse"},"SiteSummary":{"properties":{"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url"},"text":{"type":"string","title":"Text"}},"type":"object","required":["url","text"],"title":"SiteSummary"},"StepResult":{"properties":{"name":{"type":"string","title":"Name"},"ok":{"type":"boolean","title":"Ok"},"time_ms":{"type":"integer","title":"Time Ms"},"data":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorObj"},{"type":"null"}]}},"type":"object","required":["name","ok","time_ms"],"title":"StepResult"},"SummaryIn":{"properties":{"urls":{"items":{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},"type":"array","title":"Urls"},"scope":{"type":"string","enum":["page","site"],"title":"Scope","default":"page"},"lang":{"type":"string","title":"Lang","default":"es"},"prompt":{"type":"string","title":"Prompt"}},"type":"object","required":["urls","prompt"],"title":"SummaryIn"},"SummaryOut":{"properties":{"summaries":{"items":{"$ref":"#/components/schemas/SiteSummary"},"type":"array","title":"Summaries"},"compare":{"type":"string","title":"Compare"}},"type":"object","required":["summaries","compare"],"title":"SummaryOut"},"ThirdParty":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"type":{"type":"string","title":"Type"},"relationships":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Relationships"}},"additionalProperties":false,"type":"object","required":["type","relationships"],"title":"ThirdParty"},"TimingMs":{"properties":{"server_total":{"type":"integer","title":"Server Total","default":0},"decode_ms":{"type":"integer","title":"Decode Ms","default":0},"preproc_ms":{"type":"integer","title":"Preproc Ms","default":0},"ocr":{"type":"integer","title":"Ocr","default":0},"llm_mini":{"type":"integer","title":"Llm Mini","default":0},"llm_fallback":{"type":"integer","title":"Llm Fallback","default":0},"validate_ms":{"type":"integer","title":"Validate Ms","default":0},"roi_table":{"type":"integer","title":"Roi Table","default":0},"total":{"type":"integer","title":"Total","default":0}},"type":"object","title":"TimingMs"},"Topic":{"type":"string","enum":["business_data","website_forms","files","policies","security","new_law"],"title":"Topic"},"UploadOut":{"properties":{"file_id":{"type":"string","title":"File Id"},"filename":{"type":"string","title":"Filename"},"mime":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime"},"size":{"type":"integer","title":"Size"}},"type":"object","required":["file_id","filename","size"],"title":"UploadOut"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WorkspaceEntitlementsResponse":{"properties":{"active_site_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Active Site Ids"}},"type":"object","required":["active_site_ids"],"title":"WorkspaceEntitlementsResponse"}}}}