pub async fn create_waitpoint( log: &Arc<AnyEventLog>, id: &str, created_by: Option<String>, metadata: BTreeMap<String, Value>, ) -> Result<WaitpointRecord, LogError>