{"openapi":"3.1.0","info":{"title":"Studio AI","version":"1.3.3"},"paths":{"/api/v1/health":{"get":{"tags":["health"],"summary":"Health","operationId":"health_api_v1_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}}}}},"/api/v1/health/ready":{"get":{"tags":["health"],"summary":"Readiness","operationId":"readiness_api_v1_health_ready_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadinessResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadinessResponse"}}}}}}},"/api/v1/client-errors":{"post":{"tags":["observability"],"summary":"Report Client Error","operationId":"report_client_error_api_v1_client_errors_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientErrorReport"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/product-events":{"post":{"tags":["observability"],"summary":"Report Product Event","operationId":"report_product_event_api_v1_product_events_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductEventReport"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me":{"get":{"tags":["accounts"],"summary":"Get Me","operationId":"get_me_api_v1_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurrentUserResponse"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["accounts"],"summary":"Update Me","operationId":"update_me_api_v1_me_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserProfileRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurrentUserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/ai/usage":{"get":{"tags":["ai"],"summary":"Get Ai Usage","operationId":"get_ai_usage_api_v1_ai_usage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIUsageResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/ai-connections":{"get":{"tags":["ai-connections"],"summary":"Get Ai Connections","operationId":"get_ai_connections_api_v1_ai_connections_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiConnectionsResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/ai-connections/{client_id}":{"delete":{"tags":["ai-connections"],"summary":"Delete Ai Connection","operationId":"delete_ai_connection_api_v1_ai_connections__client_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/billing/mentorship/checkout":{"post":{"tags":["billing"],"summary":"Mentorship Checkout","operationId":"mentorship_checkout_api_v1_billing_mentorship_checkout_post","responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MentorshipCheckoutResponse"}}}}}}},"/api/v1/billing/mentorship/email":{"post":{"tags":["billing"],"summary":"Mentorship Claim Email","operationId":"mentorship_claim_email_api_v1_billing_mentorship_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MentorshipEmailClaimRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Mentorship Claim Email Api V1 Billing Mentorship Email Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/billing/mentorship":{"get":{"tags":["billing"],"summary":"Mentorship Access","operationId":"mentorship_access_api_v1_billing_mentorship_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MentorshipAccessResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/mercadopago/webhook":{"post":{"tags":["billing"],"summary":"Mercado Pago Webhook","operationId":"mercado_pago_webhook_api_v1_mercadopago_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Response Mercado Pago Webhook Api V1 Mercadopago Webhook Post"}}}}}}},"/api/v1/billing/subscription":{"get":{"tags":["billing"],"summary":"Subscription Status","description":"Confirm the subscription at most once per billing cycle.","operationId":"subscription_status_api_v1_billing_subscription_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Subscription Status Api V1 Billing Subscription Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/stripe/webhook":{"post":{"tags":["billing"],"summary":"Stripe Webhook","operationId":"stripe_webhook_api_v1_stripe_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Response Stripe Webhook Api V1 Stripe Webhook Post"}}}}}}},"/api/v1/plans":{"get":{"tags":["plans"],"summary":"Get Plans","operationId":"get_plans_api_v1_plans_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanListResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/plan-contact":{"post":{"tags":["plan-contact"],"summary":"Create Plan Contact Request","operationId":"create_plan_contact_request_api_v1_plan_contact_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanContactRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanContactResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/entitlements/{action}":{"get":{"tags":["entitlements"],"summary":"Get Entitlement","operationId":"get_entitlement_api_v1_entitlements__action__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"action","in":"path","required":true,"schema":{"$ref":"#/components/schemas/EntitlementAction"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"}},{"name":"flow_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__modules__entitlements__schemas__EntitlementDecision"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces":{"get":{"tags":["workspaces"],"summary":"Get Workspaces","operationId":"get_workspaces_api_v1_workspaces_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceListResponse"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["workspaces"],"summary":"Post Workspace","operationId":"post_workspace_api_v1_workspaces_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkspaceRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/workspaces/{workspace_id}/entitlements/create-folder":{"get":{"tags":["workspaces"],"summary":"Get Create Folder Entitlement","operationId":"get_create_folder_entitlement_api_v1_workspaces__workspace_id__entitlements_create_folder_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__modules__workspaces__schemas__EntitlementDecision"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/join":{"post":{"tags":["workspaces"],"summary":"Post Join Workspace","operationId":"post_join_workspace_api_v1_workspaces_join_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JoinWorkspaceRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JoinWorkspaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/workspaces/{workspace_id}/share":{"get":{"tags":["workspaces"],"summary":"Get Share Link","operationId":"get_share_link_api_v1_workspaces__workspace_id__share_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["workspaces"],"summary":"Patch Share Link","operationId":"patch_share_link_api_v1_workspaces__workspace_id__share_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetShareEnabledRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/share/rotate":{"post":{"tags":["workspaces"],"summary":"Post Rotate Share Link","operationId":"post_rotate_share_link_api_v1_workspaces__workspace_id__share_rotate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/collaboration-permissions":{"get":{"tags":["workspaces"],"summary":"Get Workspace Collaboration Permissions","operationId":"get_workspace_collaboration_permissions_api_v1_workspaces__workspace_id__collaboration_permissions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollaborationPermissionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["workspaces"],"summary":"Patch Workspace Collaboration Permissions","operationId":"patch_workspace_collaboration_permissions_api_v1_workspaces__workspace_id__collaboration_permissions_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCollaborationPermissionsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollaborationPermissionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/members/{member_user_id}":{"delete":{"tags":["workspaces"],"summary":"Delete Workspace Member","operationId":"delete_workspace_member_api_v1_workspaces__workspace_id__members__member_user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"member_user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Member User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}":{"get":{"tags":["workspaces"],"summary":"Get Workspace Detail","operationId":"get_workspace_detail_api_v1_workspaces__workspace_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["workspaces"],"summary":"Patch Workspace","operationId":"patch_workspace_api_v1_workspaces__workspace_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWorkspaceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceUpdateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workspaces"],"summary":"Delete Workspace Detail","operationId":"delete_workspace_detail_api_v1_workspaces__workspace_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceDeleteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/folders":{"get":{"tags":["folders"],"summary":"Get Folders","operationId":"get_folders_api_v1_folders_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["folders"],"summary":"Post Folder","operationId":"post_folder_api_v1_folders_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFolderRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/folders/{folder_id}":{"patch":{"tags":["folders"],"summary":"Patch Folder","operationId":"patch_folder_api_v1_folders__folder_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Folder Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFolderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderUpdateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["folders"],"summary":"Delete Folder Detail","operationId":"delete_folder_detail_api_v1_folders__folder_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Folder Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderDeleteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows":{"get":{"tags":["flows"],"summary":"Get Flows","operationId":"get_flows_api_v1_flows_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["flows"],"summary":"Post Flow","operationId":"post_flow_api_v1_flows_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFlowRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/intake/validate":{"post":{"tags":["flows"],"summary":"Post Intake Validation","operationId":"post_intake_validation_api_v1_flows_intake_validate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateIntakeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateIntakeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/flows/generate":{"post":{"tags":["flows"],"summary":"Post Generated Flow","operationId":"post_generated_flow_api_v1_flows_generate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateFlowRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/flows/{flow_id}":{"get":{"tags":["flows"],"summary":"Get Flow Detail","operationId":"get_flow_detail_api_v1_flows__flow_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["flows"],"summary":"Patch Flow","operationId":"patch_flow_api_v1_flows__flow_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFlowRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowUpdateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["flows"],"summary":"Delete Flow Endpoint","operationId":"delete_flow_endpoint_api_v1_flows__flow_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/freshness":{"get":{"tags":["flows"],"summary":"Get Flow Freshness State","operationId":"get_flow_freshness_state_api_v1_flows__flow_id__freshness_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowFreshnessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/move":{"post":{"tags":["flows"],"summary":"Move Flow Endpoint","operationId":"move_flow_endpoint_api_v1_flows__flow_id__move_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveFlowRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowUpdateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/analysis":{"get":{"tags":["flows"],"summary":"Get Analysis","operationId":"get_analysis_api_v1_flows__flow_id__analysis_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowAnalysisResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["flows"],"summary":"Post Analysis","operationId":"post_analysis_api_v1_flows__flow_id__analysis_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowAnalysisResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/analysis/regenerate":{"post":{"tags":["flows"],"summary":"Regenerate Analysis","operationId":"regenerate_analysis_api_v1_flows__flow_id__analysis_regenerate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowAnalysisResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/stages/{stage_id}/detail":{"get":{"tags":["flows"],"summary":"Get Stage Detail","operationId":"get_stage_detail_api_v1_flows__flow_id__stages__stage_id__detail_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}},{"name":"stage_id","in":"path","required":true,"schema":{"type":"string","title":"Stage Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowStageDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["flows"],"summary":"Post Stage Detail","operationId":"post_stage_detail_api_v1_flows__flow_id__stages__stage_id__detail_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}},{"name":"stage_id","in":"path","required":true,"schema":{"type":"string","title":"Stage Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowStageDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["flows"],"summary":"Patch Stage Detail","operationId":"patch_stage_detail_api_v1_flows__flow_id__stages__stage_id__detail_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}},{"name":"stage_id","in":"path","required":true,"schema":{"type":"string","title":"Stage Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowStageDetailUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowStageDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/stages/{stage_id}/detail/from-attachments":{"post":{"tags":["flows"],"summary":"Post Stage Detail From Attachments","operationId":"post_stage_detail_from_attachments_api_v1_flows__flow_id__stages__stage_id__detail_from_attachments_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}},{"name":"stage_id","in":"path","required":true,"schema":{"type":"string","title":"Stage Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowStageDetailFromAttachmentsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowStageDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/stages/{stage_id}/detail/process":{"patch":{"tags":["flows"],"summary":"Patch Stage Detail Process","operationId":"patch_stage_detail_process_api_v1_flows__flow_id__stages__stage_id__detail_process_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}},{"name":"stage_id","in":"path","required":true,"schema":{"type":"string","title":"Stage Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowStageDetailProcessUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowStageDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/stages/{stage_id}/detail/verify":{"post":{"tags":["flows"],"summary":"Post Stage Detail Verify","operationId":"post_stage_detail_verify_api_v1_flows__flow_id__stages__stage_id__detail_verify_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}},{"name":"stage_id","in":"path","required":true,"schema":{"type":"string","title":"Stage Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowStageDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/stages/{stage_id}/detail/regenerate":{"post":{"tags":["flows"],"summary":"Regenerate Stage Detail","operationId":"regenerate_stage_detail_api_v1_flows__flow_id__stages__stage_id__detail_regenerate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}},{"name":"stage_id","in":"path","required":true,"schema":{"type":"string","title":"Stage Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowStageDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/stages/{stage_id}/detail/expand":{"post":{"tags":["flows"],"summary":"Regenerate Stage Detail","operationId":"regenerate_stage_detail_api_v1_flows__flow_id__stages__stage_id__detail_expand_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}},{"name":"stage_id","in":"path","required":true,"schema":{"type":"string","title":"Stage Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowStageDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/agentic-ai":{"get":{"tags":["flows"],"summary":"Get Agentic Ai","operationId":"get_agentic_ai_api_v1_flows__flow_id__agentic_ai_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowAgenticAnalysisResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["flows"],"summary":"Post Agentic Ai","operationId":"post_agentic_ai_api_v1_flows__flow_id__agentic_ai_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowAgenticAnalysisResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/agentic-ai/verify":{"post":{"tags":["flows"],"summary":"Verify Agentic Ai","operationId":"verify_agentic_ai_api_v1_flows__flow_id__agentic_ai_verify_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowAgenticAnalysisResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/agentic-ai/regenerate":{"post":{"tags":["flows"],"summary":"Regenerate Agentic Ai","operationId":"regenerate_agentic_ai_api_v1_flows__flow_id__agentic_ai_regenerate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowAgenticAnalysisResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/agentic-ai/expand":{"post":{"tags":["flows"],"summary":"Regenerate Agentic Ai","operationId":"regenerate_agentic_ai_api_v1_flows__flow_id__agentic_ai_expand_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowAgenticAnalysisResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/raci":{"get":{"tags":["flows"],"summary":"Get Raci","operationId":"get_raci_api_v1_flows__flow_id__raci_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowRaciResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["flows"],"summary":"Patch Raci","operationId":"patch_raci_api_v1_flows__flow_id__raci_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowRaciUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowRaciResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["flows"],"summary":"Post Raci","operationId":"post_raci_api_v1_flows__flow_id__raci_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowRaciResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/raci/from-attachments":{"post":{"tags":["flows"],"summary":"Post Raci From Attachments","operationId":"post_raci_from_attachments_api_v1_flows__flow_id__raci_from_attachments_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowRaciFromAttachmentsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowRaciResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/raci/verify":{"post":{"tags":["flows"],"summary":"Verify Raci","operationId":"verify_raci_api_v1_flows__flow_id__raci_verify_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowRaciResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/raci/regenerate":{"post":{"tags":["flows"],"summary":"Regenerate Raci","operationId":"regenerate_raci_api_v1_flows__flow_id__raci_regenerate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowRaciResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/raci/expand":{"post":{"tags":["flows"],"summary":"Regenerate Raci","operationId":"regenerate_raci_api_v1_flows__flow_id__raci_expand_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowRaciResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/policies":{"get":{"tags":["flows"],"summary":"Get Policies","operationId":"get_policies_api_v1_flows__flow_id__policies_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowPoliciesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["flows"],"summary":"Post Policies","operationId":"post_policies_api_v1_flows__flow_id__policies_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowPoliciesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["flows"],"summary":"Patch Policies","operationId":"patch_policies_api_v1_flows__flow_id__policies_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowPoliciesUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowPoliciesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/policies/from-attachments":{"post":{"tags":["flows"],"summary":"Post Policies From Attachments","operationId":"post_policies_from_attachments_api_v1_flows__flow_id__policies_from_attachments_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowPoliciesFromAttachmentsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowPoliciesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/policies/verify":{"post":{"tags":["flows"],"summary":"Verify Policies","operationId":"verify_policies_api_v1_flows__flow_id__policies_verify_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowPoliciesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/policies/regenerate":{"post":{"tags":["flows"],"summary":"Regenerate Policies","operationId":"regenerate_policies_api_v1_flows__flow_id__policies_regenerate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowPoliciesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/policies/expand":{"post":{"tags":["flows"],"summary":"Regenerate Policies","operationId":"regenerate_policies_api_v1_flows__flow_id__policies_expand_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowPoliciesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/metrics":{"get":{"tags":["flows"],"summary":"Get Metrics","operationId":"get_metrics_api_v1_flows__flow_id__metrics_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowMetricsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["flows"],"summary":"Post Metrics","operationId":"post_metrics_api_v1_flows__flow_id__metrics_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowMetricsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["flows"],"summary":"Patch Metrics","operationId":"patch_metrics_api_v1_flows__flow_id__metrics_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowMetricsUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowMetricsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/metrics/from-attachments":{"post":{"tags":["flows"],"summary":"Post Metrics From Attachments","operationId":"post_metrics_from_attachments_api_v1_flows__flow_id__metrics_from_attachments_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowMetricsFromAttachmentsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowMetricsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/metrics/verify":{"post":{"tags":["flows"],"summary":"Verify Metrics","operationId":"verify_metrics_api_v1_flows__flow_id__metrics_verify_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowMetricsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/metrics/regenerate":{"post":{"tags":["flows"],"summary":"Regenerate Metrics","operationId":"regenerate_metrics_api_v1_flows__flow_id__metrics_regenerate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowMetricsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/metrics/expand":{"post":{"tags":["flows"],"summary":"Regenerate Metrics","operationId":"regenerate_metrics_api_v1_flows__flow_id__metrics_expand_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowMetricsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/cadences":{"get":{"tags":["flows"],"summary":"Get Cadences","operationId":"get_cadences_api_v1_flows__flow_id__cadences_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowCadencesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["flows"],"summary":"Post Cadences","operationId":"post_cadences_api_v1_flows__flow_id__cadences_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowCadencesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["flows"],"summary":"Patch Cadences","operationId":"patch_cadences_api_v1_flows__flow_id__cadences_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowCadencesUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowCadencesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/cadences/from-attachments":{"post":{"tags":["flows"],"summary":"Post Cadences From Attachments","operationId":"post_cadences_from_attachments_api_v1_flows__flow_id__cadences_from_attachments_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowCadencesFromAttachmentsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowCadencesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/cadences/verify":{"post":{"tags":["flows"],"summary":"Verify Cadences","operationId":"verify_cadences_api_v1_flows__flow_id__cadences_verify_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowCadencesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/cadences/regenerate":{"post":{"tags":["flows"],"summary":"Regenerate Cadences","operationId":"regenerate_cadences_api_v1_flows__flow_id__cadences_regenerate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowCadencesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/cadences/expand":{"post":{"tags":["flows"],"summary":"Regenerate Cadences","operationId":"regenerate_cadences_api_v1_flows__flow_id__cadences_expand_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowCadencesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/versions/{version_number}/restore":{"post":{"tags":["flows"],"summary":"Restore Version","operationId":"restore_version_api_v1_flows__flow_id__versions__version_number__restore_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}},{"name":"version_number","in":"path","required":true,"schema":{"type":"integer","title":"Version Number"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowUpdateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flows/{flow_id}/versions":{"get":{"tags":["flows"],"summary":"Get Flow Versions","operationId":"get_flow_versions_api_v1_flows__flow_id__versions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowVersionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AIUsageResponse":{"properties":{"used":{"type":"integer","title":"Used"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"},"period_start":{"type":"string","format":"date","title":"Period Start"},"renews_at":{"type":"string","format":"date","title":"Renews At"}},"type":"object","required":["used","limit","period_start","renews_at"],"title":"AIUsageResponse"},"AiConnection":{"properties":{"client_id":{"type":"string","title":"Client Id"},"client_name":{"type":"string","title":"Client Name"},"connected_since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Connected Since"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"}},"type":"object","required":["client_id","client_name"],"title":"AiConnection"},"AiConnectionsResponse":{"properties":{"connections":{"items":{"$ref":"#/components/schemas/AiConnection"},"type":"array","title":"Connections"}},"type":"object","required":["connections"],"title":"AiConnectionsResponse"},"ArtifactMergeNotice":{"properties":{"changed":{"type":"boolean","title":"Changed","default":true},"added_items":{"type":"integer","title":"Added Items","default":0},"filled_fields":{"type":"integer","title":"Filled Fields","default":0}},"type":"object","title":"ArtifactMergeNotice"},"ClientErrorReport":{"properties":{"message":{"type":"string","maxLength":400,"minLength":1,"title":"Message"},"page":{"type":"string","maxLength":500,"title":"Page","default":""},"kind":{"type":"string","maxLength":40,"title":"Kind","default":"error"},"source":{"type":"string","maxLength":500,"title":"Source","default":""},"line":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Line"},"column":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Column"},"stack":{"type":"string","maxLength":4000,"title":"Stack","default":""}},"type":"object","required":["message"],"title":"ClientErrorReport"},"CollaborationPermissionsResponse":{"properties":{"permissions":{"$ref":"#/components/schemas/WorkspaceCollaborationPermissions"}},"type":"object","required":["permissions"],"title":"CollaborationPermissionsResponse"},"ContextFreshness":{"properties":{"status":{"type":"string","title":"Status","default":"missing"},"upstream":{"$ref":"#/components/schemas/ContextFreshnessUpstream"},"reasons":{"items":{"type":"string"},"type":"array","title":"Reasons"}},"type":"object","title":"ContextFreshness"},"ContextFreshnessUpstream":{"properties":{"stage_detail_count":{"type":"integer","title":"Stage Detail Count","default":0},"newer_stage_detail_count":{"type":"integer","title":"Newer Stage Detail Count","default":0},"latest_stage_detail_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latest Stage Detail At"},"has_raci":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Raci"},"raci_is_newer":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Raci Is Newer"},"raci_created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Raci Created At"},"has_policies":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Policies"},"policies_is_newer":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Policies Is Newer"},"policies_created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Policies Created At"},"has_metrics":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Metrics"},"metrics_is_newer":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Metrics Is Newer"},"metrics_created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Metrics Created At"}},"type":"object","title":"ContextFreshnessUpstream"},"CreateFlowRequest":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"folder_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Folder Id"}},"type":"object","required":["name","workspace_id"],"title":"CreateFlowRequest"},"CreateFolderRequest":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"}},"type":"object","required":["name","workspace_id"],"title":"CreateFolderRequest"},"CreateWorkspaceRequest":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"CreateWorkspaceRequest"},"CurrentUserResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"profile":{"$ref":"#/components/schemas/UserProfileSummary"}},"type":"object","required":["id","email","profile"],"title":"CurrentUserResponse"},"EntitlementAction":{"type":"string","enum":["create_workspace","create_folder","create_flow","edit_flow","add_flow_stage","view_flow_history","restore_flow_version","use_ai","use_mcp","share_workspace"],"title":"EntitlementAction"},"FlowAgenticAnalysisResponse":{"properties":{"current":{"anyOf":[{"$ref":"#/components/schemas/FlowAgenticAnalysisSummary"},{"type":"null"}]},"previous":{"anyOf":[{"$ref":"#/components/schemas/FlowAgenticAnalysisSummary"},{"type":"null"}]},"is_current":{"type":"boolean","title":"Is Current"},"current_flow_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Current Flow Version Id"},"current_flow_version_number":{"type":"integer","title":"Current Flow Version Number"},"context_freshness":{"anyOf":[{"$ref":"#/components/schemas/ContextFreshness"},{"type":"null"}]},"verification":{"anyOf":[{"$ref":"#/components/schemas/FlowGovernanceVerificationSummary"},{"type":"null"}]},"needs_verification":{"type":"boolean","title":"Needs Verification","default":false},"merge":{"anyOf":[{"$ref":"#/components/schemas/ArtifactMergeNotice"},{"type":"null"}]}},"type":"object","required":["is_current","current_flow_version_number"],"title":"FlowAgenticAnalysisResponse"},"FlowAgenticAnalysisSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"flow_id":{"type":"string","format":"uuid","title":"Flow Id"},"flow_version_id":{"type":"string","format":"uuid","title":"Flow Version Id"},"flow_version_number":{"type":"integer","title":"Flow Version Number"},"created_by_user_id":{"type":"string","format":"uuid","title":"Created By User Id"},"provider":{"type":"string","title":"Provider"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"prompt_version":{"type":"string","title":"Prompt Version"},"analysis":{"additionalProperties":true,"type":"object","title":"Analysis"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","flow_id","flow_version_id","flow_version_number","created_by_user_id","provider","prompt_version","analysis","created_at"],"title":"FlowAgenticAnalysisSummary"},"FlowAnalysisResponse":{"properties":{"current":{"anyOf":[{"$ref":"#/components/schemas/FlowAnalysisSummary"},{"type":"null"}]},"previous":{"anyOf":[{"$ref":"#/components/schemas/FlowAnalysisSummary"},{"type":"null"}]},"is_current":{"type":"boolean","title":"Is Current"},"current_flow_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Current Flow Version Id"},"current_flow_version_number":{"type":"integer","title":"Current Flow Version Number"}},"type":"object","required":["is_current","current_flow_version_number"],"title":"FlowAnalysisResponse"},"FlowAnalysisSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"flow_id":{"type":"string","format":"uuid","title":"Flow Id"},"flow_version_id":{"type":"string","format":"uuid","title":"Flow Version Id"},"flow_version_number":{"type":"integer","title":"Flow Version Number"},"created_by_user_id":{"type":"string","format":"uuid","title":"Created By User Id"},"provider":{"type":"string","title":"Provider"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"prompt_version":{"type":"string","title":"Prompt Version"},"analysis":{"additionalProperties":true,"type":"object","title":"Analysis"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","flow_id","flow_version_id","flow_version_number","created_by_user_id","provider","prompt_version","analysis","created_at"],"title":"FlowAnalysisSummary"},"FlowCadencesAttachmentRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"content":{"type":"string","maxLength":200000,"title":"Content"}},"type":"object","required":["name","content"],"title":"FlowCadencesAttachmentRequest"},"FlowCadencesFromAttachmentsRequest":{"properties":{"attachments":{"items":{"$ref":"#/components/schemas/FlowCadencesAttachmentRequest"},"type":"array","maxItems":3,"minItems":1,"title":"Attachments"}},"type":"object","required":["attachments"],"title":"FlowCadencesFromAttachmentsRequest"},"FlowCadencesResponse":{"properties":{"current":{"anyOf":[{"$ref":"#/components/schemas/FlowCadencesSummary"},{"type":"null"}]},"previous":{"anyOf":[{"$ref":"#/components/schemas/FlowCadencesSummary"},{"type":"null"}]},"is_current":{"type":"boolean","title":"Is Current"},"current_flow_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Current Flow Version Id"},"current_flow_version_number":{"type":"integer","title":"Current Flow Version Number"},"context_freshness":{"anyOf":[{"$ref":"#/components/schemas/ContextFreshness"},{"type":"null"}]},"verification":{"anyOf":[{"$ref":"#/components/schemas/FlowGovernanceVerificationSummary"},{"type":"null"}]},"needs_verification":{"type":"boolean","title":"Needs Verification","default":false},"merge":{"anyOf":[{"$ref":"#/components/schemas/ArtifactMergeNotice"},{"type":"null"}]}},"type":"object","required":["is_current","current_flow_version_number"],"title":"FlowCadencesResponse"},"FlowCadencesSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"flow_id":{"type":"string","format":"uuid","title":"Flow Id"},"flow_version_id":{"type":"string","format":"uuid","title":"Flow Version Id"},"flow_version_number":{"type":"integer","title":"Flow Version Number"},"created_by_user_id":{"type":"string","format":"uuid","title":"Created By User Id"},"provider":{"type":"string","title":"Provider"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"prompt_version":{"type":"string","title":"Prompt Version"},"cadences":{"additionalProperties":true,"type":"object","title":"Cadences"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","flow_id","flow_version_id","flow_version_number","created_by_user_id","provider","prompt_version","cadences","created_at"],"title":"FlowCadencesSummary"},"FlowCadencesUpdateRequest":{"properties":{"cadences":{"additionalProperties":true,"type":"object","title":"Cadences"}},"type":"object","required":["cadences"],"title":"FlowCadencesUpdateRequest"},"FlowCreateResponse":{"properties":{"flow":{"$ref":"#/components/schemas/FlowDetail"}},"type":"object","required":["flow"],"title":"FlowCreateResponse"},"FlowDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"folder_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Folder Id"},"name":{"type":"string","title":"Name"},"step_count":{"type":"integer","title":"Step Count"},"created_by_user_id":{"type":"string","format":"uuid","title":"Created By User Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"version_count":{"type":"integer","title":"Version Count","default":0},"payload":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload"},"latest_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Latest Version Id"}},"type":"object","required":["id","workspace_id","folder_id","name","step_count","created_by_user_id","created_at","updated_at"],"title":"FlowDetail"},"FlowDetailResponse":{"properties":{"flow":{"$ref":"#/components/schemas/FlowDetail"}},"type":"object","required":["flow"],"title":"FlowDetailResponse"},"FlowFreshnessResponse":{"properties":{"flow_id":{"type":"string","format":"uuid","title":"Flow Id"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"latest_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Latest Version Id"},"version_count":{"type":"integer","title":"Version Count","default":0}},"type":"object","required":["flow_id","updated_at"],"title":"FlowFreshnessResponse"},"FlowGovernanceFinding":{"properties":{"target_type":{"type":"string","title":"Target Type","default":"artifact"},"target_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Id"},"severity":{"type":"string","title":"Severity","default":"attention"},"code":{"type":"string","title":"Code","default":"semantic"},"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"FlowGovernanceFinding"},"FlowGovernanceVerificationSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"flow_id":{"type":"string","format":"uuid","title":"Flow Id"},"flow_version_id":{"type":"string","format":"uuid","title":"Flow Version Id"},"flow_version_number":{"type":"integer","title":"Flow Version Number"},"instrument":{"type":"string","title":"Instrument"},"created_by_user_id":{"type":"string","format":"uuid","title":"Created By User Id"},"provider":{"type":"string","title":"Provider"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"status":{"type":"string","title":"Status"},"summary":{"type":"string","title":"Summary","default":""},"findings":{"items":{"$ref":"#/components/schemas/FlowGovernanceFinding"},"type":"array","title":"Findings"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"needs_verification":{"type":"boolean","title":"Needs Verification","default":false}},"type":"object","required":["id","flow_id","flow_version_id","flow_version_number","instrument","created_by_user_id","provider","status","created_at"],"title":"FlowGovernanceVerificationSummary"},"FlowListResponse":{"properties":{"flows":{"items":{"$ref":"#/components/schemas/FlowSummary"},"type":"array","title":"Flows"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"}},"type":"object","required":["flows","total","limit"],"title":"FlowListResponse"},"FlowMetricsAttachmentRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"content":{"type":"string","maxLength":200000,"title":"Content"}},"type":"object","required":["name","content"],"title":"FlowMetricsAttachmentRequest"},"FlowMetricsFromAttachmentsRequest":{"properties":{"attachments":{"items":{"$ref":"#/components/schemas/FlowMetricsAttachmentRequest"},"type":"array","maxItems":3,"minItems":1,"title":"Attachments"}},"type":"object","required":["attachments"],"title":"FlowMetricsFromAttachmentsRequest"},"FlowMetricsResponse":{"properties":{"current":{"anyOf":[{"$ref":"#/components/schemas/FlowMetricsSummary"},{"type":"null"}]},"previous":{"anyOf":[{"$ref":"#/components/schemas/FlowMetricsSummary"},{"type":"null"}]},"is_current":{"type":"boolean","title":"Is Current"},"current_flow_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Current Flow Version Id"},"current_flow_version_number":{"type":"integer","title":"Current Flow Version Number"},"context_freshness":{"anyOf":[{"$ref":"#/components/schemas/ContextFreshness"},{"type":"null"}]},"verification":{"anyOf":[{"$ref":"#/components/schemas/FlowGovernanceVerificationSummary"},{"type":"null"}]},"needs_verification":{"type":"boolean","title":"Needs Verification","default":false},"merge":{"anyOf":[{"$ref":"#/components/schemas/ArtifactMergeNotice"},{"type":"null"}]}},"type":"object","required":["is_current","current_flow_version_number"],"title":"FlowMetricsResponse"},"FlowMetricsSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"flow_id":{"type":"string","format":"uuid","title":"Flow Id"},"flow_version_id":{"type":"string","format":"uuid","title":"Flow Version Id"},"flow_version_number":{"type":"integer","title":"Flow Version Number"},"created_by_user_id":{"type":"string","format":"uuid","title":"Created By User Id"},"provider":{"type":"string","title":"Provider"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"prompt_version":{"type":"string","title":"Prompt Version"},"metrics":{"additionalProperties":true,"type":"object","title":"Metrics"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","flow_id","flow_version_id","flow_version_number","created_by_user_id","provider","prompt_version","metrics","created_at"],"title":"FlowMetricsSummary"},"FlowMetricsUpdateRequest":{"properties":{"metrics":{"additionalProperties":true,"type":"object","title":"Metrics"}},"type":"object","required":["metrics"],"title":"FlowMetricsUpdateRequest"},"FlowPoliciesAttachmentRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"content":{"type":"string","maxLength":200000,"title":"Content"}},"type":"object","required":["name","content"],"title":"FlowPoliciesAttachmentRequest"},"FlowPoliciesFromAttachmentsRequest":{"properties":{"attachments":{"items":{"$ref":"#/components/schemas/FlowPoliciesAttachmentRequest"},"type":"array","maxItems":3,"minItems":1,"title":"Attachments"}},"type":"object","required":["attachments"],"title":"FlowPoliciesFromAttachmentsRequest"},"FlowPoliciesResponse":{"properties":{"current":{"anyOf":[{"$ref":"#/components/schemas/FlowPoliciesSummary"},{"type":"null"}]},"previous":{"anyOf":[{"$ref":"#/components/schemas/FlowPoliciesSummary"},{"type":"null"}]},"is_current":{"type":"boolean","title":"Is Current"},"current_flow_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Current Flow Version Id"},"current_flow_version_number":{"type":"integer","title":"Current Flow Version Number"},"context_freshness":{"anyOf":[{"$ref":"#/components/schemas/ContextFreshness"},{"type":"null"}]},"verification":{"anyOf":[{"$ref":"#/components/schemas/FlowGovernanceVerificationSummary"},{"type":"null"}]},"needs_verification":{"type":"boolean","title":"Needs Verification","default":false},"merge":{"anyOf":[{"$ref":"#/components/schemas/ArtifactMergeNotice"},{"type":"null"}]}},"type":"object","required":["is_current","current_flow_version_number"],"title":"FlowPoliciesResponse"},"FlowPoliciesSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"flow_id":{"type":"string","format":"uuid","title":"Flow Id"},"flow_version_id":{"type":"string","format":"uuid","title":"Flow Version Id"},"flow_version_number":{"type":"integer","title":"Flow Version Number"},"created_by_user_id":{"type":"string","format":"uuid","title":"Created By User Id"},"provider":{"type":"string","title":"Provider"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"prompt_version":{"type":"string","title":"Prompt Version"},"policies":{"additionalProperties":true,"type":"object","title":"Policies"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","flow_id","flow_version_id","flow_version_number","created_by_user_id","provider","prompt_version","policies","created_at"],"title":"FlowPoliciesSummary"},"FlowPoliciesUpdateRequest":{"properties":{"policies":{"additionalProperties":true,"type":"object","title":"Policies"}},"type":"object","required":["policies"],"title":"FlowPoliciesUpdateRequest"},"FlowRaciAttachmentRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"content":{"type":"string","maxLength":200000,"title":"Content"}},"type":"object","required":["name","content"],"title":"FlowRaciAttachmentRequest"},"FlowRaciFinding":{"properties":{"target_type":{"type":"string","title":"Target Type"},"target_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Id"},"severity":{"type":"string","title":"Severity","default":"attention"},"code":{"type":"string","title":"Code","default":"semantic"},"message":{"type":"string","title":"Message"}},"type":"object","required":["target_type","message"],"title":"FlowRaciFinding"},"FlowRaciFromAttachmentsRequest":{"properties":{"attachments":{"items":{"$ref":"#/components/schemas/FlowRaciAttachmentRequest"},"type":"array","maxItems":3,"minItems":1,"title":"Attachments"}},"type":"object","required":["attachments"],"title":"FlowRaciFromAttachmentsRequest"},"FlowRaciResponse":{"properties":{"current":{"anyOf":[{"$ref":"#/components/schemas/FlowRaciSummary"},{"type":"null"}]},"previous":{"anyOf":[{"$ref":"#/components/schemas/FlowRaciSummary"},{"type":"null"}]},"is_current":{"type":"boolean","title":"Is Current"},"current_flow_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Current Flow Version Id"},"current_flow_version_number":{"type":"integer","title":"Current Flow Version Number"},"context_freshness":{"anyOf":[{"$ref":"#/components/schemas/ContextFreshness"},{"type":"null"}]},"verification":{"anyOf":[{"$ref":"#/components/schemas/FlowRaciVerificationSummary"},{"type":"null"}]},"needs_verification":{"type":"boolean","title":"Needs Verification","default":false},"merge":{"anyOf":[{"$ref":"#/components/schemas/ArtifactMergeNotice"},{"type":"null"}]}},"type":"object","required":["is_current","current_flow_version_number"],"title":"FlowRaciResponse"},"FlowRaciSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"flow_id":{"type":"string","format":"uuid","title":"Flow Id"},"flow_version_id":{"type":"string","format":"uuid","title":"Flow Version Id"},"flow_version_number":{"type":"integer","title":"Flow Version Number"},"created_by_user_id":{"type":"string","format":"uuid","title":"Created By User Id"},"provider":{"type":"string","title":"Provider"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"prompt_version":{"type":"string","title":"Prompt Version"},"matrix":{"additionalProperties":true,"type":"object","title":"Matrix"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","flow_id","flow_version_id","flow_version_number","created_by_user_id","provider","prompt_version","matrix","created_at"],"title":"FlowRaciSummary"},"FlowRaciUpdateRequest":{"properties":{"matrix":{"additionalProperties":true,"type":"object","title":"Matrix"}},"type":"object","required":["matrix"],"title":"FlowRaciUpdateRequest"},"FlowRaciVerificationSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"flow_id":{"type":"string","format":"uuid","title":"Flow Id"},"flow_version_id":{"type":"string","format":"uuid","title":"Flow Version Id"},"flow_version_number":{"type":"integer","title":"Flow Version Number"},"created_by_user_id":{"type":"string","format":"uuid","title":"Created By User Id"},"provider":{"type":"string","title":"Provider"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"status":{"type":"string","title":"Status"},"summary":{"type":"string","title":"Summary","default":""},"findings":{"items":{"$ref":"#/components/schemas/FlowRaciFinding"},"type":"array","title":"Findings"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"needs_verification":{"type":"boolean","title":"Needs Verification","default":false}},"type":"object","required":["id","flow_id","flow_version_id","flow_version_number","created_by_user_id","provider","status","created_at"],"title":"FlowRaciVerificationSummary"},"FlowStageDetailAttachmentRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"content":{"type":"string","maxLength":200000,"title":"Content"}},"type":"object","required":["name","content"],"title":"FlowStageDetailAttachmentRequest"},"FlowStageDetailFinding":{"properties":{"target_type":{"type":"string","title":"Target Type","default":"detail"},"target_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Id"},"severity":{"type":"string","title":"Severity","default":"attention"},"code":{"type":"string","title":"Code","default":"semantic"},"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"FlowStageDetailFinding"},"FlowStageDetailFromAttachmentsRequest":{"properties":{"attachments":{"items":{"$ref":"#/components/schemas/FlowStageDetailAttachmentRequest"},"type":"array","maxItems":3,"minItems":1,"title":"Attachments"}},"type":"object","required":["attachments"],"title":"FlowStageDetailFromAttachmentsRequest"},"FlowStageDetailProcessUpdateRequest":{"properties":{"nodes":{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":20,"title":"Nodes"},"edges":{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":30,"title":"Edges"}},"type":"object","title":"FlowStageDetailProcessUpdateRequest"},"FlowStageDetailResponse":{"properties":{"current":{"anyOf":[{"$ref":"#/components/schemas/FlowStageDetailSummary"},{"type":"null"}]},"previous":{"anyOf":[{"$ref":"#/components/schemas/FlowStageDetailSummary"},{"type":"null"}]},"is_current":{"type":"boolean","title":"Is Current"},"current_flow_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Current Flow Version Id"},"current_flow_version_number":{"type":"integer","title":"Current Flow Version Number"},"stage_id":{"type":"string","title":"Stage Id"},"verification":{"anyOf":[{"$ref":"#/components/schemas/FlowStageDetailVerificationSummary"},{"type":"null"}]},"needs_verification":{"type":"boolean","title":"Needs Verification","default":false},"merge":{"anyOf":[{"$ref":"#/components/schemas/ArtifactMergeNotice"},{"type":"null"}]}},"type":"object","required":["is_current","current_flow_version_number","stage_id"],"title":"FlowStageDetailResponse"},"FlowStageDetailSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"flow_id":{"type":"string","format":"uuid","title":"Flow Id"},"flow_version_id":{"type":"string","format":"uuid","title":"Flow Version Id"},"flow_version_number":{"type":"integer","title":"Flow Version Number"},"stage_id":{"type":"string","title":"Stage Id"},"created_by_user_id":{"type":"string","format":"uuid","title":"Created By User Id"},"provider":{"type":"string","title":"Provider"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"prompt_version":{"type":"string","title":"Prompt Version"},"detail":{"additionalProperties":true,"type":"object","title":"Detail"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","flow_id","flow_version_id","flow_version_number","stage_id","created_by_user_id","provider","prompt_version","detail","created_at"],"title":"FlowStageDetailSummary"},"FlowStageDetailUpdateRequest":{"properties":{"roles":{"items":{"type":"string"},"type":"array","maxItems":6,"title":"Roles"},"inputs":{"items":{"type":"string"},"type":"array","maxItems":8,"title":"Inputs"},"outputs":{"items":{"type":"string"},"type":"array","maxItems":8,"title":"Outputs"},"exceptions":{"items":{"type":"string"},"type":"array","maxItems":8,"title":"Exceptions"}},"type":"object","title":"FlowStageDetailUpdateRequest"},"FlowStageDetailVerificationSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"flow_id":{"type":"string","format":"uuid","title":"Flow Id"},"flow_version_id":{"type":"string","format":"uuid","title":"Flow Version Id"},"flow_version_number":{"type":"integer","title":"Flow Version Number"},"stage_id":{"type":"string","title":"Stage Id"},"created_by_user_id":{"type":"string","format":"uuid","title":"Created By User Id"},"provider":{"type":"string","title":"Provider"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"status":{"type":"string","title":"Status"},"summary":{"type":"string","title":"Summary","default":""},"findings":{"items":{"$ref":"#/components/schemas/FlowStageDetailFinding"},"type":"array","title":"Findings"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"needs_verification":{"type":"boolean","title":"Needs Verification","default":false}},"type":"object","required":["id","flow_id","flow_version_id","flow_version_number","stage_id","created_by_user_id","provider","status","created_at"],"title":"FlowStageDetailVerificationSummary"},"FlowSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"folder_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Folder Id"},"name":{"type":"string","title":"Name"},"step_count":{"type":"integer","title":"Step Count"},"created_by_user_id":{"type":"string","format":"uuid","title":"Created By User Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"version_count":{"type":"integer","title":"Version Count","default":0}},"type":"object","required":["id","workspace_id","folder_id","name","step_count","created_by_user_id","created_at","updated_at"],"title":"FlowSummary"},"FlowUpdateResponse":{"properties":{"flow":{"$ref":"#/components/schemas/FlowDetail"}},"type":"object","required":["flow"],"title":"FlowUpdateResponse"},"FlowVersionSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"flow_id":{"type":"string","format":"uuid","title":"Flow Id"},"version":{"type":"integer","title":"Version"},"created_by_user_id":{"type":"string","format":"uuid","title":"Created By User Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},"type":"object","required":["id","flow_id","version","created_by_user_id","created_at"],"title":"FlowVersionSummary"},"FlowVersionsResponse":{"properties":{"versions":{"items":{"$ref":"#/components/schemas/FlowVersionSummary"},"type":"array","title":"Versions"}},"type":"object","required":["versions"],"title":"FlowVersionsResponse"},"FolderCreateResponse":{"properties":{"folder":{"$ref":"#/components/schemas/FolderSummary"}},"type":"object","required":["folder"],"title":"FolderCreateResponse"},"FolderDeleteResponse":{"properties":{"deleted_folder_id":{"type":"string","format":"uuid","title":"Deleted Folder Id"}},"type":"object","required":["deleted_folder_id"],"title":"FolderDeleteResponse"},"FolderListResponse":{"properties":{"folders":{"items":{"$ref":"#/components/schemas/FolderSummary"},"type":"array","title":"Folders"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["folders","total"],"title":"FolderListResponse"},"FolderSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","title":"Name"},"created_by_user_id":{"type":"string","format":"uuid","title":"Created By User Id"},"flow_count":{"type":"integer","title":"Flow 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","workspace_id","name","created_by_user_id","created_at","updated_at"],"title":"FolderSummary"},"FolderUpdateResponse":{"properties":{"folder":{"$ref":"#/components/schemas/FolderSummary"}},"type":"object","required":["folder"],"title":"FolderUpdateResponse"},"GenerateFlowAttachmentRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"content":{"type":"string","maxLength":200000,"title":"Content"}},"type":"object","required":["name","content"],"title":"GenerateFlowAttachmentRequest"},"GenerateFlowRequest":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"folder_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Folder Id"},"description":{"type":"string","maxLength":2000,"minLength":10,"title":"Description"},"business_type":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Business Type"},"sector":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Sector"},"attachments":{"items":{"$ref":"#/components/schemas/GenerateFlowAttachmentRequest"},"type":"array","maxItems":3,"title":"Attachments"}},"type":"object","required":["workspace_id","description"],"title":"GenerateFlowRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HealthResponse":{"properties":{"status":{"type":"string","title":"Status"},"app":{"type":"string","title":"App"},"version":{"type":"string","title":"Version"}},"type":"object","required":["status","app","version"],"title":"HealthResponse"},"IntakeAnswerRequest":{"properties":{"question":{"type":"string","maxLength":240,"minLength":1,"title":"Question"},"answer":{"type":"string","maxLength":600,"minLength":1,"title":"Answer"},"answer_type":{"type":"string","maxLength":20,"title":"Answer Type","default":"option"},"field":{"type":"string","maxLength":20,"title":"Field","default":""}},"type":"object","required":["question","answer"],"title":"IntakeAnswerRequest"},"IntakeOptionResponse":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"}},"type":"object","required":["id","label"],"title":"IntakeOptionResponse"},"IntakeQuestionResponse":{"properties":{"id":{"type":"string","title":"Id"},"question":{"type":"string","title":"Question"},"options":{"items":{"$ref":"#/components/schemas/IntakeOptionResponse"},"type":"array","title":"Options"},"why":{"type":"string","title":"Why","default":""},"field":{"type":"string","title":"Field","default":""}},"type":"object","required":["id","question","options"],"title":"IntakeQuestionResponse"},"JoinWorkspaceRequest":{"properties":{"token":{"type":"string","minLength":1,"title":"Token"}},"type":"object","required":["token"],"title":"JoinWorkspaceRequest"},"JoinWorkspaceResponse":{"properties":{"workspace":{"$ref":"#/components/schemas/WorkspaceSummary"}},"type":"object","required":["workspace"],"title":"JoinWorkspaceResponse"},"MentorshipAccessResponse":{"properties":{"eligible":{"type":"boolean","title":"Eligible"},"access_ends_at":{"type":"string","format":"date-time","title":"Access Ends At"},"pro_access_starts_at":{"type":"string","format":"date-time","title":"Pro Access Starts At"},"pro_access_ends_at":{"type":"string","format":"date-time","title":"Pro Access Ends At"},"scheduling_url":{"type":"string","title":"Scheduling Url"}},"type":"object","required":["eligible","access_ends_at","pro_access_starts_at","pro_access_ends_at","scheduling_url"],"title":"MentorshipAccessResponse"},"MentorshipCheckoutResponse":{"properties":{"checkout_url":{"type":"string","title":"Checkout Url"}},"type":"object","required":["checkout_url"],"title":"MentorshipCheckoutResponse"},"MentorshipEmailClaimRequest":{"properties":{"reference":{"type":"string","title":"Reference"},"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["reference","email"],"title":"MentorshipEmailClaimRequest"},"MoveFlowRequest":{"properties":{"target_workspace_id":{"type":"string","format":"uuid","title":"Target Workspace Id"}},"type":"object","required":["target_workspace_id"],"title":"MoveFlowRequest"},"PlanContactRequest":{"properties":{"plan_code":{"type":"string","maxLength":40,"minLength":1,"title":"Plan Code"},"plan_name":{"type":"string","maxLength":80,"minLength":1,"title":"Plan Name"},"name":{"type":"string","maxLength":80,"minLength":2,"title":"Name"},"email":{"type":"string","format":"email","title":"Email"},"whatsapp":{"type":"string","pattern":"^\\d{11}$","title":"Whatsapp"},"company":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Company"},"message":{"anyOf":[{"type":"string","maxLength":800},{"type":"null"}],"title":"Message"},"workspace_id":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Workspace Id"},"workspace_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Workspace Name"},"form_start":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Form Start"},"website":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Website"}},"type":"object","required":["plan_code","plan_name","name","email","whatsapp"],"title":"PlanContactRequest"},"PlanContactResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"}},"type":"object","required":["success","message"],"title":"PlanContactResponse"},"PlanListResponse":{"properties":{"plans":{"items":{"$ref":"#/components/schemas/app__modules__plans__schemas__PlanSummary"},"type":"array","title":"Plans"},"checkout_urls":{"additionalProperties":{"type":"string"},"type":"object","title":"Checkout Urls","default":{}}},"type":"object","required":["plans"],"title":"PlanListResponse"},"PlanSuggestion":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"price":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price"}},"type":"object","required":["code","name"],"title":"PlanSuggestion"},"ProductEventReport":{"properties":{"name":{"type":"string","maxLength":60,"minLength":1,"title":"Name"},"cta":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Cta"}},"type":"object","required":["name"],"title":"ProductEventReport"},"ReadinessResponse":{"properties":{"status":{"type":"string","title":"Status"},"database":{"type":"string","title":"Database"}},"type":"object","required":["status","database"],"title":"ReadinessResponse"},"SetShareEnabledRequest":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"SetShareEnabledRequest"},"ShareLinkResponse":{"properties":{"token":{"type":"string","title":"Token"},"enabled":{"type":"boolean","title":"Enabled"},"join_path":{"type":"string","title":"Join Path"}},"type":"object","required":["token","enabled","join_path"],"title":"ShareLinkResponse"},"UpdateCollaborationPermissionsRequest":{"properties":{"members_can_create_flows":{"type":"boolean","title":"Members Can Create Flows","default":false},"members_can_edit_flows":{"type":"boolean","title":"Members Can Edit Flows","default":false},"members_can_use_intelligent_assistance":{"type":"boolean","title":"Members Can Use Intelligent Assistance","default":false}},"type":"object","title":"UpdateCollaborationPermissionsRequest"},"UpdateFlowRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Name"},"folder_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Folder Id"},"payload":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload"}},"type":"object","title":"UpdateFlowRequest"},"UpdateFolderRequest":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"UpdateFolderRequest"},"UpdateUserProfileRequest":{"properties":{"display_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Display Name"},"profile_photo_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Profile Photo Url"}},"type":"object","title":"UpdateUserProfileRequest"},"UpdateWorkspaceRequest":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"UpdateWorkspaceRequest"},"UserProfileSummary":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"profile_photo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Photo Url"},"preferred_locale":{"type":"string","title":"Preferred Locale"},"plan":{"$ref":"#/components/schemas/app__modules__accounts__schemas__PlanSummary"}},"type":"object","required":["user_id","display_name","profile_photo_url","preferred_locale","plan"],"title":"UserProfileSummary"},"ValidateIntakeRequest":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"description":{"type":"string","maxLength":2000,"minLength":10,"title":"Description"},"round_number":{"type":"integer","minimum":1.0,"title":"Round Number","default":1},"answers":{"items":{"$ref":"#/components/schemas/IntakeAnswerRequest"},"type":"array","title":"Answers"},"settled_fields":{"items":{"type":"string"},"type":"array","maxItems":8,"title":"Settled Fields"},"attachments":{"items":{"$ref":"#/components/schemas/GenerateFlowAttachmentRequest"},"type":"array","maxItems":3,"title":"Attachments"},"correction":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Correction"},"previous_understanding":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Previous Understanding"}},"type":"object","required":["workspace_id","description"],"title":"ValidateIntakeRequest","description":"Stateless intake round: the client resends the full context every time."},"ValidateIntakeResponse":{"properties":{"status":{"type":"string","title":"Status"},"round_number":{"type":"integer","title":"Round Number"},"questions":{"items":{"$ref":"#/components/schemas/IntakeQuestionResponse"},"type":"array","title":"Questions"},"settled_fields":{"items":{"type":"string"},"type":"array","title":"Settled Fields"},"refined_description":{"type":"string","title":"Refined Description"},"max_rounds":{"type":"integer","title":"Max Rounds"},"max_questions_per_round":{"type":"integer","title":"Max Questions Per Round"}},"type":"object","required":["status","round_number","questions","settled_fields","refined_description","max_rounds","max_questions_per_round"],"title":"ValidateIntakeResponse"},"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"},"WorkspaceCollaborationPermissions":{"properties":{"members_can_create_flows":{"type":"boolean","title":"Members Can Create Flows","default":false},"members_can_edit_flows":{"type":"boolean","title":"Members Can Edit Flows","default":false},"members_can_use_intelligent_assistance":{"type":"boolean","title":"Members Can Use Intelligent Assistance","default":false}},"type":"object","title":"WorkspaceCollaborationPermissions"},"WorkspaceCreateResponse":{"properties":{"workspace":{"$ref":"#/components/schemas/WorkspaceDetail"}},"type":"object","required":["workspace"],"title":"WorkspaceCreateResponse"},"WorkspaceDeleteResponse":{"properties":{"deleted_workspace_id":{"type":"string","format":"uuid","title":"Deleted Workspace Id"},"next_workspace":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceSummary"},{"type":"null"}]}},"type":"object","required":["deleted_workspace_id","next_workspace"],"title":"WorkspaceDeleteResponse"},"WorkspaceDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"created_by_user_id":{"type":"string","format":"uuid","title":"Created By User Id"},"role":{"$ref":"#/components/schemas/WorkspaceRole"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"effective_permissions":{"$ref":"#/components/schemas/WorkspaceEffectivePermissions"},"members":{"items":{"$ref":"#/components/schemas/WorkspaceMemberSummary"},"type":"array","title":"Members"}},"type":"object","required":["id","name","created_by_user_id","role","created_at","updated_at","members"],"title":"WorkspaceDetail"},"WorkspaceDetailResponse":{"properties":{"workspace":{"$ref":"#/components/schemas/WorkspaceDetail"}},"type":"object","required":["workspace"],"title":"WorkspaceDetailResponse"},"WorkspaceEffectivePermissions":{"properties":{"can_create_flows":{"type":"boolean","title":"Can Create Flows"},"can_edit_flows":{"type":"boolean","title":"Can Edit Flows"},"can_use_intelligent_assistance":{"type":"boolean","title":"Can Use Intelligent Assistance"}},"type":"object","required":["can_create_flows","can_edit_flows","can_use_intelligent_assistance"],"title":"WorkspaceEffectivePermissions"},"WorkspaceListResponse":{"properties":{"workspaces":{"items":{"$ref":"#/components/schemas/WorkspaceSummary"},"type":"array","title":"Workspaces"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"}},"type":"object","required":["workspaces","total","limit"],"title":"WorkspaceListResponse"},"WorkspaceMemberSummary":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"role":{"$ref":"#/components/schemas/WorkspaceRole"},"joined_at":{"type":"string","format":"date-time","title":"Joined At"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","required":["user_id","role","joined_at"],"title":"WorkspaceMemberSummary"},"WorkspaceRole":{"type":"string","enum":["owner","member","viewer"],"title":"WorkspaceRole"},"WorkspaceSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"created_by_user_id":{"type":"string","format":"uuid","title":"Created By User Id"},"role":{"$ref":"#/components/schemas/WorkspaceRole"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"effective_permissions":{"$ref":"#/components/schemas/WorkspaceEffectivePermissions"}},"type":"object","required":["id","name","created_by_user_id","role","created_at","updated_at"],"title":"WorkspaceSummary"},"WorkspaceUpdateResponse":{"properties":{"workspace":{"$ref":"#/components/schemas/WorkspaceDetail"}},"type":"object","required":["workspace"],"title":"WorkspaceUpdateResponse"},"app__modules__accounts__schemas__PlanSummary":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"max_workspaces":{"type":"integer","title":"Max Workspaces"},"max_flows_total":{"type":"integer","title":"Max Flows Total"},"ai_credits_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ai Credits Limit"}},"type":"object","required":["code","name","max_workspaces","max_flows_total","ai_credits_limit"],"title":"PlanSummary"},"app__modules__entitlements__schemas__EntitlementDecision":{"properties":{"action":{"$ref":"#/components/schemas/EntitlementAction"},"allowed":{"type":"boolean","title":"Allowed"},"reason":{"type":"string","title":"Reason"},"current_plan":{"type":"string","title":"Current Plan"},"usage":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"integer"},{"type":"boolean"},{"type":"string"},{"type":"null"}]},"type":"object"},{"type":"null"}],"title":"Usage"},"suggested_plans":{"items":{"$ref":"#/components/schemas/PlanSuggestion"},"type":"array","title":"Suggested Plans"}},"type":"object","required":["action","allowed","reason","current_plan"],"title":"EntitlementDecision"},"app__modules__plans__schemas__PlanSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"max_workspaces":{"type":"integer","title":"Max Workspaces"},"folders_allowed":{"type":"boolean","title":"Folders Allowed"},"max_flows_total":{"type":"integer","title":"Max Flows Total"},"max_steps_per_flow":{"type":"integer","title":"Max Steps Per Flow"},"sharing_allowed":{"type":"boolean","title":"Sharing Allowed"},"flow_versioning_allowed":{"type":"boolean","title":"Flow Versioning Allowed"},"flow_editing_allowed":{"type":"boolean","title":"Flow Editing Allowed"},"mcp_allowed":{"type":"boolean","title":"Mcp Allowed"},"ai_credits_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ai Credits Limit"},"ai_model_tier":{"type":"integer","title":"Ai Model Tier"},"price":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Price"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","code","name","max_workspaces","folders_allowed","max_flows_total","max_steps_per_flow","sharing_allowed","flow_versioning_allowed","flow_editing_allowed","mcp_allowed","ai_credits_limit","ai_model_tier","price","created_at","updated_at"],"title":"PlanSummary"},"app__modules__workspaces__schemas__EntitlementDecision":{"properties":{"action":{"type":"string","title":"Action"},"allowed":{"type":"boolean","title":"Allowed"},"reason":{"type":"string","title":"Reason"},"current_plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Plan"},"usage":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"integer"},{"type":"boolean"},{"type":"string"},{"type":"null"}]},"type":"object"},{"type":"null"}],"title":"Usage"},"suggested_plans":{"items":{"$ref":"#/components/schemas/PlanSuggestion"},"type":"array","title":"Suggested Plans","default":[]}},"type":"object","required":["action","allowed","reason"],"title":"EntitlementDecision"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}